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 would expect that Psalm complains about an ImpureArgument in this situation: https://psalm.dev/r/32d15575cf
The text was updated successfully, but these errors were encountered:
I found these snippets:
<?php class Item { } /** * @psalm-immutable */ class Immutable { /** * @var Item[] */ private $items; /** * @param Item[] $items */ public function __construct(array $items) { $this->items = $items; } } $item = new Item(); new Immutable([$item]);
Psalm output (using commit a0da735): No issues!
Sorry, something went wrong.
2c0cf40
No branches or pull requests
I would expect that Psalm complains about an ImpureArgument in this situation: https://psalm.dev/r/32d15575cf
The text was updated successfully, but these errors were encountered: