phpstan/phpstan-deprecation-rules

Deprecated static properties are not detected when called in child class

Khartir opened this issue · 1 comments

This code does not produce any error:

class Foo
{
    /**
     * @deprecated
     */
    protected static string $foo = '';
}

class Bar extends Foo
{
    public function test(): void
    {
        echo self::$foo;
    }
}

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.