Commit c5c17a3
committed
build(rector): require the versions the config depends on
rector.php skips three rules by class name, and Rector fails hard when
a skipped rule does not exist. On a prefer-lowest build the previous
constraints resolved rector 2.0.0 and rector-laravel 2.0.0, where none
of the three had been written yet:
[ERROR] These rules from "$rectorConfig->skip()" does not exist
* RectorLaravel\Rector\FuncCall\AppToResolveRector
* RectorLaravel\Rector\ClassMethod\MakeModelAttributesAndScopesProtectedRector
* Rector\Php84\Rector\MethodCall\NewMethodCallWithoutParenthesesRector
Both constraints move to ^2.6, the range that carries them. Verified
on the two ends of the matrix: Laravel 12 with prefer-lowest, which
resolves rector 2.6.4 and rector-laravel 2.6.1, and Laravel 13 with
prefer-stable. Both dependencies are dev only, so nothing changes for
an application installing the package.1 parent 8173b69 commit c5c17a3
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
0 commit comments