Skip to content
New issue

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

Getting errors for an overridden final constant in an interface #8664

Closed
ollieread opened this issue Nov 5, 2022 · 1 comment
Closed

Getting errors for an overridden final constant in an interface #8664

ollieread opened this issue Nov 5, 2022 · 1 comment
Labels

Comments

@ollieread
Copy link

I have an interface with a series of final constants, and I'm getting errors for every single implementation of it.

Recreated here: https://psalm.dev/r/6200ceb1fe

@psalm-github-bot
Copy link

I found these snippets:

https://psalm.dev/r/6200ceb1fe
<?php

interface TestInterface {
    public final const SOMETHING = 0;
}

class TestImpl implements TestInterface {
}
Psalm output (using commit d0be59e):

ERROR: OverriddenFinalConstant - 4:24 - SOMETHING cannot be overridden because it is marked as final in TestInterface

@danog danog added the bug label Nov 5, 2022
danog added a commit to danog/psalm that referenced this issue Nov 5, 2022
orklah added a commit that referenced this issue Nov 5, 2022
@danog danog closed this as completed Nov 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants