Skip to content

composer-based command errors on PHP 7.4 #9878

Description

@artegic-pco

Bug Report

Subject Details
Rector version 2.6.5
PHP version 7.4.33

When I run the composer-based command, e.g. like so:

php vendor/bin/rector composer-based

I get the following output:

In ComposerBasedCommand.php line 165:
                                                                                                              
  Cannot access non-public member Rector\PHPUnit\ValueObject\AnnotationWithValueToAttribute::$annotationName  
                                                                                                              

composer-based

I suppose that the missing setAccessible() call has not been added during the PHP version downgrade.

Expected Behaviour

Well, it should run.

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