The rule suggests replacing static type-hint by something like self:
class Foo {
/**
* @return static
*/
public function foo() : Foo {
}
}
In method "Foo::foo", return type is type-hinted to "Foo" but the @return annotation says it is a "static(Foo)". Please fix the @return annotation.