psalm icon indicating copy to clipboard operation
psalm copied to clipboard

Invalid class constant name

Open AndrolGenhald opened this issue 2 years ago • 1 comments

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

We should show an issue for this.

AndrolGenhald avatar Jul 20 '22 23:07 AndrolGenhald

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!

psalm-github-bot[bot] avatar Jul 20 '22 23:07 psalm-github-bot[bot]