[pkg-php-pear] Using rector [Was: PHPUnit 12 transition]

David Prévot david at tilapin.org
Tue Sep 9 05:48:14 BST 2025


Hi William,

On 9/1/25 12:50, David Prévot wrote:
> On 9/1/25 03:31, William Desportes wrote:
> […]> For users searching for the updated list: https://qa.debian.org/ 
> excuses.php?experimental=1&package=phpunit
[…]> Help is welcome to fix the easy ones too! I intend to mostly focus of
> symfony for the time being (I’ll try to automatize them a bit with 
> rector, thanks William for pointing me to https://github.com/rectorphp/ 
> rector-phpunit, instead of the manual patching I’ve been handling so 
> far). Also, please try and test your updated packages with PHPUnit 12 to 
> avoid introducing regressions before enabling #1099656.

I’m failing at making rector do anything useful. I tried to reproduce a 
trivial [poc] based on the [doc], but running vendor/bin/rector (after 
setting up things with “composer require rector/rector --dev”) simply 
displays “[OK] Rector is done!” without changing anything.

poc: https://salsa.debian.org/taffit/rector-poc
doc: 
https://getrector.com/rule-detail/data-provider-annotation-to-attribute-rector

I’m probably missing something obvious, so if you managed to make rector 
work, thanks in advance for pointing my mistakes (feel free to commit 
fixes to the rector-poc repository).

Cheers,

taffit



More information about the pkg-php-pear mailing list