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
Using PHPStan\dumpType to investigate types causes side-effects on the inspected types when the type is an array:
PHPStan\dumpType
https://phpstan.org/r/9f986651-78d9-45c7-8718-d6a7f7eedc9e
I would expect the same output for count in both locations.
count
As always, it helps me and my org. every day!
The text was updated successfully, but these errors were encountered:
dumpType needs @phpstan-pure (https://github.com/phpstan/phpstan-src/blob/1.8.x/src/dumpType.php) same as these functions: https://github.com/phpstan/phpstan-src/blob/1.8.x/src/Testing/functions.php
@phpstan-pure
Also needs to be added as exception here: https://github.com/phpstan/phpstan-src/blob/bd971db903c650ec4ffd7f2db65d3fe6a2b5666d/src/Rules/Functions/CallToFunctionStatementWithoutSideEffectsRule.php#L59-L65
Easiest thing to contribute ;)
Sorry, something went wrong.
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
Using
PHPStan\dumpType
to investigate types causes side-effects on the inspected types when the type is an array:Code snippet that reproduces the problem
https://phpstan.org/r/9f986651-78d9-45c7-8718-d6a7f7eedc9e
Expected output
I would expect the same output for
count
in both locations.Did PHPStan help you today? Did it make you happy in any way?
As always, it helps me and my org. every day!
The text was updated successfully, but these errors were encountered: