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
See https://psalm.dev/r/8518ebc0a4
The text was updated successfully, but these errors were encountered:
I found these snippets:
<?php /** @property Foo::PROP_* $aprop */ class Foo { public const PROP_ONE = 1; public function __get(string $name) { return self::PROP_ONE; } } $obj = new Foo(); echo $obj->aprop; // This works. echo "$obj->aprop"; // ERROR: InvalidCast echo (string)$obj->aprop; // Same.
Psalm output (using commit d4311e3): ERROR: InvalidCast - 14:7 - Foo::PROP_* cannot be cast to string ERROR: InvalidCast - 16:14 - Foo::PROP_* cannot be cast to string
Sorry, something went wrong.
Expand magic properties
d992331
Fixes vimeo#4344 Fixes vimeo#5663 Fixes vimeo#5639 Fixes vimeo#5955 Fixes vimeo#3272
Successfully merging a pull request may close this issue.
See https://psalm.dev/r/8518ebc0a4
The text was updated successfully, but these errors were encountered: