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
https://psalm.dev/r/55a6758cbd
I'd expect the property to be a string inside the if, but still getting warning about possible undefined property.
Maybe related: #4182, #8196
The text was updated successfully, but these errors were encountered:
I found these snippets:
<?php /** * @param object{s?: string} $p */ function f(object $p): void { if (property_exists($p, 's')) { /** @psalm-trace $p */ } }
Psalm output (using commit 0221ff1): INFO: Trace - 7:0 - $p: object{s?:string}
Sorry, something went wrong.
No branches or pull requests
https://psalm.dev/r/55a6758cbd
I'd expect the property to be a string inside the if, but still getting warning about possible undefined property.
Maybe related: #4182, #8196
The text was updated successfully, but these errors were encountered: