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/65c1a5a247
I added a real property to check whether the syntax working. Union syntax does't work either
The text was updated successfully, but these errors were encountered:
I found these snippets:
<?php /** * @property self::A_* $state * @property self::A_c|self::A_b $state3 */ class A { private const A_b = '2'; private const A_c = '3'; /** @var self::A_* $state2 */ private string $state2; public function __construct() { $this->state2 = self::A_b; } public function foo(string $val): bool { return $this->state === self::A_b; } public function bar(string $val): bool { return $this->state2 === self::A_b; } public function baz(string $val): bool { return $this->state3 === self::A_b; } private function __get() {} }
Psalm output (using commit ee778e9): ERROR: DocblockTypeContradiction - 20:16 - "2" does not contain self::A_* ERROR: DocblockTypeContradiction - 28:16 - "2" does not contain self::A_b|self::A_c
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.
https://psalm.dev/r/65c1a5a247
I added a real property to check whether the syntax working. Union syntax does't work either
The text was updated successfully, but these errors were encountered: