[pkg-php-pear] Re : Using rector [Was: PHPUnit 12 transition]
William Desportes
williamdes at wdes.fr
Wed Sep 10 15:33:26 BST 2025
Hi David and PHP team,
I updated https://salsa.debian.org/taffit/rector-poc and it has a CI to test it.
And a README to read: https://salsa.debian.org/taffit/rector-poc
It works! : https://salsa.debian.org/php-team/pear/rector-poc/-/jobs/8254289
Please let me know
--
William
---- Le Tue, 09 Sep 2025 06:48:14 +0200 David Prévot <david at tilapin.org> a écrit ----
> 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