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
We expect the @phpstan-readonly-allow-private-mutation property array to be appended for the following use cases.
@phpstan-readonly-allow-private-mutation
refs #7778, phpstan/phpstan-src#1391 https://psalm.dev/docs/annotating_code/supported_annotations/#psalm-allow-private-mutation
<?php declare(strict_types = 1); class ArrayLogger { /** * @phpstan-readonly-allow-private-mutation * @var list<mixed> */ public array $logs = []; public function log(mixed $data): void { $this->logs[] = $data; } }
https://phpstan.org/r/a7a757b2-c0cf-48a1-8402-125db9b4a37f
No errors.
Your fastest merge and release made me happy 😄
The text was updated successfully, but these errors were encountered:
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.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Bug report
We expect the
@phpstan-readonly-allow-private-mutation
property array to be appended for the following use cases.refs #7778, phpstan/phpstan-src#1391
https://psalm.dev/docs/annotating_code/supported_annotations/#psalm-allow-private-mutation
Code snippet that reproduces the problem
https://phpstan.org/r/a7a757b2-c0cf-48a1-8402-125db9b4a37f
Expected output
No errors.
Did PHPStan help you today? Did it make you happy in any way?
Your fastest merge and release made me happy 😄
The text was updated successfully, but these errors were encountered: