Skip to content

Remove useless method override #7698

@vudaltsov

Description

@vudaltsov

Diff

class A
{
    /**
     * Same phpdoc.
     */
    public function method(string $b): int
    {
        // some code
    }
}

class B extends A
{
-    /**
-     * Same phpdoc.
-     */
-    public function method(string $b): int
-    {
-        return parent::method($b);
-    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions