Skip to content
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

Wrong order of needle/haystack in Matchers/Contains #5

Closed
enduro44 opened this issue Nov 13, 2020 · 1 comment
Closed

Wrong order of needle/haystack in Matchers/Contains #5

enduro44 opened this issue Nov 13, 2020 · 1 comment

Comments

@enduro44
Copy link
Contributor

Hi @mcustiel

public function matches($value): bool { return strpos($this->getCheckValue()->get(), $value) !== false; }
I guess it should be other way around

return strpos($value, $this->getCheckValue()->get()) !== false;

@enduro44
Copy link
Contributor Author

I've created small PR to fix this #6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants