Skip to content

Does not warn/error when trait with abstract method are not implemented #278

Description

@DarkGhostHunter

PHPantom version

0.9.0-86-g01cbcab

Installation method

Built from source

Operating system

Linux x86_64

Editor

Zed

Bug description

When using a Trait that includes an abstract method, PHPantom does not report any error when the method is not implemented properly.

Steps to reproduce

trait Foo
{
   abstract protected function foo();
}

class Bar
{
    use Foo;

    // No error
}

Error output or panic trace


.phpantom.toml

default

Additional context

Error should be on the trait or the class name... or both. Personally I prefer both: the implementor, and the culprit.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions