Skip to content

PHPUnit 12.2.0 breaks Rector test case #6381

@TomasVotruba

Description

@TomasVotruba

I'm coming with a humble request to fix Rector test case. This commit in 12.2.0 preloads 3 packages that now trigger nikic/php-parser autoload: dea8cff

  • SebastianBergmann\CodeCoverage
  • SebastianBergmann\Complexity
  • SebastianBergmann\LinesOfCode

Currently we patch php-parser to allow Rector rules to use StmtsAware and NodeTraverser cache. Because of this autoload in here, if someone runs PHPUnit 12 Rector test case in their code, it crashes because we're preloading our version of php-parser

Any chance to remove or disable this? At the moment anyone running Rector tests on PHPUnit 12 can't. Thanks for any help

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/bugSomething is broken

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions