assert
assert copied to clipboard
Assert::allOneOf get complains from phpStan on usage
Hi,
Thanks for your library! I have discovered the following issue:
The method allOneOf($values, $values, $message = '')
of Webmozart\Assert
has in the signature two variables with the same name "values", this is confusing PhpStan, the static analyzer, thinking that the method has only 2 arguments, so when is called with 3 is giving the following error:
Static method Webmozart\Assert\Assert::allOneOf() invoked with 3 parameters, 1-2 required.
I will submit a PR this afternoon/first days of the next week
Thanks!
Haven't ran into this myself yet, but if youre willing to provide a PR, that would be great, thanks
Will be fixed in https://github.com/webmozart/assert/pull/126
@monro93 Can you verify that this is no longer an issue in a newer version?