-
Notifications
You must be signed in to change notification settings - Fork 46
Bugfixes #71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bugfixes #71
Conversation
@@ -109,7 +110,7 @@ private static function storeInCache($type, $class) | |||
/** | |||
* Set new strategies and clear the cache. | |||
* | |||
* @param DiscoveryStrategy[] $strategies | |||
* @param array $strategies string array of FQN to a DiscoveryStrategy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FQCN you mean?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'd prefer to write it out anyways :-)
@param string[] $strategies Fully qualified class name to a DiscoveryStrategy
*/ | ||
public static function prependStrategy(DiscoveryStrategy $strategy) | ||
public static function prependStrategy($strategy) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe a full functional test with a prepend strategy that returns a mock?
LGTM! |
Thank you for merging. |
Sorry for this PR. I've made some mistakes in previous PRs.
Fix 1:
We should see if the candidate got a condition when we fetch it from the cache.
Fix 2:
Improved the doc blocs
Fix 3:
We should not require an object of type
DiscoveryStrategy
onappendStratey
andprependStrategy
. We should require a string FQCN.