Merge pull request #274 from creative-commoners/pulls/5.3/remove-self

ENH Use class name instead of self
This commit is contained in:
Guy Sartorelli 2024-06-17 11:58:11 +12:00 committed by GitHub
commit f2ad46e363
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View File

@ -379,7 +379,7 @@ class FixtureContext implements Context
*/
public function stepIAssignObjToObj($type, $value, $relationType, $relationId)
{
self::stepIAssignObjToObjInTheRelation($type, $value, $relationType, $relationId, null);
FixtureContext::stepIAssignObjToObjInTheRelation($type, $value, $relationType, $relationId, null);
}
/**

View File

@ -51,7 +51,7 @@ class Extension implements ExtensionInterface
*/
public function getConfigKey()
{
return self::SILVERSTRIPE_ID;
return Extension::SILVERSTRIPE_ID;
}
public function initialize(ExtensionManager $extensionManager)

View File

@ -183,10 +183,10 @@ class RetryableCallHandler implements CallHandler
return false;
}
$feature = $call->getFeature();
if ($feature->hasTag(self::RETRY_TAG)) {
if ($feature->hasTag(RetryableCallHandler::RETRY_TAG)) {
return true;
}
$scenario = $this->getStepScenario($feature, $call->getStep());
return $scenario && $scenario->hasTag(self::RETRY_TAG);
return $scenario && $scenario->hasTag(RetryableCallHandler::RETRY_TAG);
}
}