ENH Use class name instead of self

This commit is contained in:
Steve Boyd 2024-06-05 15:19:52 +12:00
parent 678358e04e
commit 3390e9afd8
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);
}
}