phpstan / phpstan-deprecation-rules

PHPStan rules for detecting usage of deprecated classes, methods, properties, constants and traits.
MIT License
378 stars 18 forks source link

Deprecated static properties are not detected when called in child class #88

Closed Khartir closed 1 year ago

Khartir commented 1 year ago

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;
    }
}
github-actions[bot] commented 1 year ago

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.