Skip to content

Commit 4e8b8a5

Browse files
authored
Merge pull request #9707 from samsonasik/chore-bump-rector-215
chore: Bump to Rector 2.1.5 and apply it
2 parents 3c592ff + 65dd775 commit 4e8b8a5

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"phpunit/phpcov": "^9.0.2 || ^10.0",
2929
"phpunit/phpunit": "^10.5.16 || ^11.2",
3030
"predis/predis": "^3.0",
31-
"rector/rector": "2.1.4",
31+
"rector/rector": "2.1.5",
3232
"shipmonk/phpstan-baseline-per-identifier": "^2.0"
3333
},
3434
"replace": {

rector.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
use Rector\Php70\Rector\FuncCall\RandomFunctionRector;
3636
use Rector\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromotionRector;
3737
use Rector\Php81\Rector\FuncCall\NullToStrictStringFuncCallArgRector;
38+
use Rector\PHPUnit\CodeQuality\Rector\Class_\AddParamTypeFromDependsRector;
3839
use Rector\PHPUnit\CodeQuality\Rector\Class_\RemoveDataProviderParamKeysRector;
3940
use Rector\PHPUnit\CodeQuality\Rector\Class_\YieldDataProviderRector;
4041
use Rector\Privatization\Rector\Property\PrivatizeFinalClassPropertyRector;
@@ -169,6 +170,9 @@
169170
CompactToVariablesRector::class,
170171

171172
RemoveDataProviderParamKeysRector::class,
173+
174+
// buggy on no depends, @see https://github.com/rectorphp/rector-phpunit/pull/537
175+
AddParamTypeFromDependsRector::class,
172176
])
173177
// auto import fully qualified class names
174178
->withImportNames(removeUnusedImports: true)

tests/system/Config/FactoriesTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ public function testGetComponentInstances(): array
460460
* }
461461
*/
462462
#[Depends('testGetComponentInstances')]
463-
public function testSetComponentInstances(array $data)
463+
public function testSetComponentInstances(array $data): array
464464
{
465465
$before = Factories::getComponentInstances('config');
466466
$this->assertSame(['options' => [], 'aliases' => [], 'instances' => []], $before);

0 commit comments

Comments
 (0)