|
3 | 3 | declare(strict_types=1); |
4 | 4 |
|
5 | 5 | use Rector\Arguments\Rector\ClassMethod\ArgumentAdderRector; |
6 | | -use Rector\Arguments\ValueObject\ArgumentAdder; |
| 6 | +use Rector\Arguments\ValueObject\ArgumentAdderWithoutDefaultValue; |
7 | 7 | use Rector\Config\RectorConfig; |
8 | 8 | use Rector\Renaming\Rector\MethodCall\RenameMethodRector; |
9 | 9 | use Rector\Renaming\ValueObject\MethodCallRename; |
|
19 | 19 |
|
20 | 20 | // https://github.com/laravel/framework/commit/8f9ddea4481717943ed4ecff96d86b703c81a87d |
21 | 21 | $rectorConfig |
22 | | - ->ruleWithConfiguration(ArgumentAdderRector::class, [new ArgumentAdder( |
| 22 | + ->ruleWithConfiguration(ArgumentAdderRector::class, [new ArgumentAdderWithoutDefaultValue( |
23 | 23 | 'Illuminate\Contracts\Foundation\Application', |
24 | 24 | 'storagePath', |
25 | 25 | 0, |
26 | 26 | 'path', |
27 | | - '' |
28 | 27 | ), |
29 | 28 | ]); |
30 | 29 |
|
31 | 30 | // https://github.com/laravel/framework/commit/e6c8aaea886d35cc55bd3469f1a95ad56d53e474 |
32 | 31 | $rectorConfig |
33 | | - ->ruleWithConfiguration(ArgumentAdderRector::class, [new ArgumentAdder( |
| 32 | + ->ruleWithConfiguration(ArgumentAdderRector::class, [new ArgumentAdderWithoutDefaultValue( |
34 | 33 | 'Illuminate\Foundation\Application', |
35 | 34 | 'langPath', |
36 | 35 | 0, |
37 | 36 | 'path', |
38 | | - '' |
39 | 37 | ), |
40 | 38 | ]); |
41 | 39 |
|
42 | 40 | // https://github.com/laravel/framework/commit/e095ac0e928b5620f33c9b60816fde5ece867d32 |
43 | 41 | $rectorConfig |
44 | | - ->ruleWithConfiguration(ArgumentAdderRector::class, [new ArgumentAdder( |
| 42 | + ->ruleWithConfiguration(ArgumentAdderRector::class, [new ArgumentAdderWithoutDefaultValue( |
45 | 43 | 'Illuminate\Database\Eloquent\Model', |
46 | 44 | 'touch', |
47 | 45 | 0, |
|
51 | 49 |
|
52 | 50 | // https://github.com/laravel/framework/commit/6daecf43dd931dc503e410645ff4a7d611e3371f |
53 | 51 | $rectorConfig |
54 | | - ->ruleWithConfiguration(ArgumentAdderRector::class, [new ArgumentAdder( |
| 52 | + ->ruleWithConfiguration(ArgumentAdderRector::class, [new ArgumentAdderWithoutDefaultValue( |
55 | 53 | 'Illuminate\Queue\Failed\FailedJobProviderInterface', |
56 | 54 | 'flush', |
57 | 55 | 0, |
|
0 commit comments