Skip to content

Conversation

@samsonasik
Copy link
Member

@samsonasik
Copy link
Member Author

@TomasVotruba this somehow error on phpunit 10 and 11, I will check more :)

@samsonasik
Copy link
Member Author

This is strange, on PHPUnit 10:

  1. vendor/bin/phpunit tests/Rector (works)
  2. vendor/bin/phpunit (Error)

It possibly tests PHPStan early cause it...

I will check more...

@samsonasik
Copy link
Member Author

@TomasVotruba I got it, this is expected to error, as happen on stable as well, when run:

vendor/bin/phpunit

it start test PHPStan first, then verify that PHPStanTestCase exists, then skip include preload early

next, test Rector, it already skipped early the preload.

This will needs change config order in phpunit.xml

@samsonasik
Copy link
Member Author

Fixed by update test order

@samsonasik
Copy link
Member Author

samsonasik commented Oct 11, 2025

@TomasVotruba current status:

  • The dev-main now works on PHPUnit 10, 11, 12 local PHPUnit ✔️
  • The stable is error as expected as new release is needed
  • Issue is on global installation, which I can't find a way to fix because autoload is already too early on global autoload.

I am going to merge it for now, so we can move forward.

@samsonasik samsonasik merged commit 2eb2fd2 into main Oct 11, 2025
4 of 10 checks passed
@TomasVotruba TomasVotruba deleted the stmts branch October 11, 2025 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants