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
Cf rfc: https://wiki.php.net/rfc/is_literal
Cf phpstan: https://phpstan.org/r/ca885493-b98a-4192-9e9b-eccabeda173a
Psalm snippet https://psalm.dev/r/36ad98d72b
The text was updated successfully, but these errors were encountered:
I found these snippets:
<?php /** @param array<literal-string> $string */ function test(array $string): void { /** @psalm-trace $a */ $a = implode('e', $string); }
Psalm output (using commit 08afc45): INFO: Trace - 7:5 - $a: string INFO: UnusedVariable - 7:5 - $a is never referenced or the value is not used
Sorry, something went wrong.
literal-string is non-empty-literal-string
No branches or pull requests
Cf rfc: https://wiki.php.net/rfc/is_literal
Cf phpstan: https://phpstan.org/r/ca885493-b98a-4192-9e9b-eccabeda173a
Psalm snippet
https://psalm.dev/r/36ad98d72b
The text was updated successfully, but these errors were encountered: