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
I've reported the very similar #5783 before, which was fixed (thanks!).
In 1.6.0, using array_push with the splat operator loses the array shape for the array. "regular" uses of array_push or $a[] = do not have this issue.
array_push
$a[] =
https://phpstan.org/r/35e49621-9df6-4eed-960e-e030acc9728e
$a, $b and $c all report array<int, array{a: int, b: string}>;
$a
$b
$c
array<int, array{a: int, b: string}>
I love working with PHPStan. I learn new things everytime!
The text was updated successfully, but these errors were encountered:
/cc @herndlm who did phpstan/phpstan-src#1232 :)
Sorry, something went wrong.
array_unshift
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
I've reported the very similar #5783 before, which was fixed (thanks!).
In 1.6.0, using
array_push
with the splat operator loses the array shape for the array. "regular" uses ofarray_push
or$a[] =
do not have this issue.Code snippet that reproduces the problem
https://phpstan.org/r/35e49621-9df6-4eed-960e-e030acc9728e
Expected output
$a
,$b
and$c
all reportarray<int, array{a: int, b: string}>
;Did PHPStan help you today? Did it make you happy in any way?
I love working with PHPStan. I learn new things everytime!
The text was updated successfully, but these errors were encountered: