Skip to content

Commit

Permalink
Merge pull request #274 from creative-commoners/pulls/5.3/remove-self
Browse files Browse the repository at this point in the history
ENH Use class name instead of self
  • Loading branch information
GuySartorelli authored Jun 16, 2024
2 parents 678358e + 3390e9a commit f2ad46e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Context/FixtureContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ public function stepUpdateRecordRelation($type, $id, $relation, $relationType, $
*/
public function stepIAssignObjToObj($type, $value, $relationType, $relationId)
{
self::stepIAssignObjToObjInTheRelation($type, $value, $relationType, $relationId, null);
FixtureContext::stepIAssignObjToObjInTheRelation($type, $value, $relationType, $relationId, null);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class Extension implements ExtensionInterface
*/
public function getConfigKey()
{
return self::SILVERSTRIPE_ID;
return Extension::SILVERSTRIPE_ID;
}

public function initialize(ExtensionManager $extensionManager)
Expand Down
4 changes: 2 additions & 2 deletions src/Utility/RetryableCallHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,10 @@ protected function isCallRetryable(Call $call)
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);
}
}

0 comments on commit f2ad46e

Please sign in to comment.