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
Not sure why, but the following code fails both on 5.4.0 and on the latest commit, 8329309:
5.4.0
<?php interface FeatureFlagInterface extends BackedEnum { } function test(FeatureFlagInterface $featureFlag): void { $featureFlag::cases(); }
ERROR: UndefinedMethod - src/test.php:9:5 - Method FeatureFlagInterface::cases does not exist (see https://psalm.dev/022) $featureFlag::cases();
Even though the Psalm website does not report any error, using the same commit:
https://psalm.dev/r/8e66ae9cd8
Reproduce:
mkdir -p bug/src && cd bug cat > src/test.php <<'EOF' <?php interface FeatureFlagInterface extends BackedEnum { } function test(FeatureFlagInterface $featureFlag): void { $featureFlag::cases(); } EOF composer require vimeo/psalm:dev-master#8329309 vendor/bin/psalm --init src 1 vendor/bin/psalm
The text was updated successfully, but these errors were encountered:
I found these snippets:
Psalm output (using commit 8329309): No issues!
Sorry, something went wrong.
I::cases()
interface I extends BackedEnum
fix I::cases() where interface I extends BackedEnum
afb8c88
Fixes vimeo#9065 Inheritance in stubs seems to be broken
Thanks for the fix! Do you know why psalm.dev did not report any issue, using the same commit?
psalm.dev
weirdan
Successfully merging a pull request may close this issue.
Not sure why, but the following code fails both on
5.4.0
and on the latest commit, 8329309:Even though the Psalm website does not report any error, using the same commit:
https://psalm.dev/r/8e66ae9cd8
Reproduce:
The text was updated successfully, but these errors were encountered: