We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Argument 1 in array_unique() cannot contain enum as the function causes implicit __toString conversion which is not supported for enums
For this code
$countries = [Country::CZ, Country::CZ, Country::SK]; array_unique($countries, SORT_REGULAR)
shouldn't be reported this error, because of second argument the __toString is not used for compare.
Probably there are some other combinations of other functions which check this rule where there are different default $flag for comparing method type.
The text was updated successfully, but these errors were encountered:
Released as 2.11.1
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Argument 1 in array_unique() cannot contain enum as the function causes implicit __toString conversion which is not supported for enums
For this code
shouldn't be reported this error, because of second argument the __toString is not used for compare.
Probably there are some other combinations of other functions which check this rule where there are different default $flag for comparing method type.
The text was updated successfully, but these errors were encountered: