Skip to content

False positive for static return type #41

@marcospassos

Description

@marcospassos

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. 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions