Skip to content

Signature of abstract methods defined in traits is checked against the implementing class method in php 8+ #1712

@lee-van-oetz

Description

@lee-van-oetz

Is your feature request related to a problem?

I am trying to upgrade from PHP 7.4 to PHP 8.x and have used this package to check the code -- just warnings reported, no errors, but after upgrade, I am indeed getting errors, most prevalent for me is
From https://www.php.net/manual/en/migration80.incompatible.php:

The signature of abstract methods defined in traits is now checked against the implementing class method:

Describe the solution you'd like

I'm not too sure about inner workings of phpcs. I would like this issue to be reported ofc :) I can try to add this, but I would probably need some guidance.

  • I intend to create a pull request to implement this feature.

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