Skip to content

Rector suggests RequiresExtension #9042

@theofidry

Description

@theofidry

Bug Report

Subject Details
Rector version 2.0.9
PHP version 8.2.26
PHPUnit version 10.5.45 

I tried to upgrade from Rector 1 to 2 (see the commit here).

As you can see it proposes the following diff:

-    /**
-     * @requires extension zlib
-     */
+    #[RequiresExtension('zlib')]

Expected Behaviour

PHPUnit does not offer a PHPUnit\Framework\Attributes\RequiresExtension attribute but PHPUnit\Framework\Attributes\RequiresPhpExtension

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