Skip to content

Detect potential use of method of concrete class #4

Description

@rskuipers

In the following scenario we do type-hint the variable but we try to use a method, supposedly one of a implementation, without asserting anything.

interface ExampleInterface
{
    public function update();
}

function func(ExampleInterface $var)
{
    $var->insert();
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions