You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: PHPUnit versions changed without configuration changeย #1000
Activity
shivammathur commentedon Sep 17, 2025
Fixed in 8f81967
SMillerDev commentedon Sep 17, 2025
Thanks!
Specify exact version. shivammathur/setup-php#1000.
pprkut commentedon Sep 18, 2025
This indeed fixed the phpunit issue we were facing, but it seems to have a regression for phpcs.
shivammathur commentedon Sep 18, 2025
@pprkut Thanks for reporting this
MatteoFattorini commentedon Sep 18, 2025
@shivammathur
Weโre seeing a version downgrade for stan too in our CI runners
Nothing has changed in our composers.
Example
Before: phpstan 1.12.28
Now: phpstan 1.9.9
shivammathur commentedon Sep 18, 2025
@pprkut @MatteoFattorini
I have fixed this further in bf6b4fb.
GitHub seems to have changed the matching refs API, they were sorted earlier and it worked. Should work correctly once these fixes are released.
Test workflow: https://github.com/shivammathur/test-setup-php/actions/runs/17826589779/workflow
pprkut commentedon Sep 18, 2025
@shivammathur Yes! I can confirm it works correctly now in our CI and it installs the right versions for phpunit, phpcs and phpstan. Thank you! ๐
LorenzoRogai commentedon Sep 18, 2025
phpstan 1.9.9 instead of 1.12.28 is still being pulled from our side
rodrigoprimo commentedon Sep 18, 2025
Was this fix released already?
We are still seeing this issue in the WPCS repository. I just triggered a new GitHub Actions build, and it failed due to an incorrect PHPStan version: https://github.com/WordPress/WordPress-Coding-Standards/actions/runs/17828454462/job/50687177814?pr=2572
shivammathur commentedon Sep 18, 2025
@LorenzoRogai @rodrigoprimo The fixes are still in the develop branch, please wait for the next release. I will try to do it later today or tomorrow.
LorenzoRogai commentedon Sep 18, 2025
Will the fix also revert phpcs/phpcbf from 4 to 3.13.4?
shivammathur commentedon Sep 18, 2025
@LorenzoRogai
tools: phpcsortools: phpcs:4should setup 4.0.0 which is the latest tag currently.tools: phpcs:3should setup 3.13.4shivammathur commentedon Sep 18, 2025
Released the fixes in
2.35.5