Skip to content

False positive for static return type #41

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. 

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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