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

Invalid class constant name #8294

Closed
AndrolGenhald opened this issue Jul 20, 2022 · 1 comment
Closed

Invalid class constant name #8294

AndrolGenhald opened this issue Jul 20, 2022 · 1 comment
Labels
class const easy problems Issues that can be fixed without background knowledge of Psalm enhancement

Comments

@AndrolGenhald
Copy link
Collaborator

AndrolGenhald commented Jul 20, 2022

https://3v4l.org/T94Rc https://psalm.dev/r/6d865edf9e

We should show an issue for this.

@AndrolGenhald AndrolGenhald added enhancement easy problems Issues that can be fixed without background knowledge of Psalm class const labels Jul 20, 2022
@psalm-github-bot
Copy link

psalm-github-bot bot commented Jul 20, 2022

I found these snippets:

https://psalm.dev/r/6d865edf9e
<?php

class Foo
{
    /** @var class-string<Bar> */
    protected const CLASS = Bar::class;
}

class Bar {}
Psalm output (using commit 85fe7e8):

No issues!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
class const easy problems Issues that can be fixed without background knowledge of Psalm enhancement
Projects
None yet
Development

No branches or pull requests

1 participant