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
Parameter #4 $replacement of array_splice() is reported as array|string, it should be mixed through, see https://www.php.net/manual/en/function.array-splice.php
#4 $replacement
array_splice()
array|string
mixed
https://phpstan.org/r/47c75bff-cfa4-417c-b4dc-070d23b46d89
No error, the code snippet works as expected: https://3v4l.org/aieOR
It allowed me to delete around 200 lines of redundant code.
The text was updated successfully, but these errors were encountered:
If you want to fix this yourself - https://github.com/phpstan/phpstan-src/blob/master/resources/functionMap.php#L305 should be the place to look at
Sorry, something went wrong.
$replacement
Fix type for array_splice() argument $replacement
13e1257
Resolves phpstan/phpstan#6288 Thanks to @herndlm
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Successfully merging a pull request may close this issue.
Bug report
Parameter
#4 $replacement
ofarray_splice()
is reported asarray|string
, it should bemixed
through, see https://www.php.net/manual/en/function.array-splice.phpCode snippet that reproduces the problem
https://phpstan.org/r/47c75bff-cfa4-417c-b4dc-070d23b46d89
Expected output
No error, the code snippet works as expected: https://3v4l.org/aieOR
Did PHPStan help you today? Did it make you happy in any way?
It allowed me to delete around 200 lines of redundant code.
The text was updated successfully, but these errors were encountered: