Skip to content

Commit 14bab79

Browse files
committed
do not skip StaticCallOnNonStaticToInstanceCallRector
1 parent 88668a0 commit 14bab79

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

rector.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
use Rector\EarlyReturn\Rector\If_\RemoveAlwaysElseRector;
3030
use Rector\EarlyReturn\Rector\Return_\PreparedValueToEarlyReturnRector;
3131
use Rector\Php70\Rector\FuncCall\RandomFunctionRector;
32-
use Rector\Php70\Rector\StaticCall\StaticCallOnNonStaticToInstanceCallRector;
3332
use Rector\Php71\Rector\FuncCall\RemoveExtraParametersRector;
3433
use Rector\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromotionRector;
3534
use Rector\Php81\Rector\FuncCall\NullToStrictStringFuncCallArgRector;
@@ -165,10 +164,6 @@
165164
__DIR__ . '/tests/system/Database',
166165
__DIR__ . '/tests/system/Models',
167166
],
168-
169-
StaticCallOnNonStaticToInstanceCallRector::class => [
170-
__DIR__ . '/tests/_support/Config/Services.php',
171-
],
172167
])
173168
// auto import fully qualified class names
174169
->withImportNames(removeUnusedImports: true)

tests/_support/Config/Services.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public static function uri(?string $uri = null, bool $getShared = true): URI
4545

4646
if ($uri === null) {
4747
$appConfig = config(App::class);
48-
$factory = new SiteURIFactory($appConfig, Services::superglobals());
48+
$factory = new SiteURIFactory($appConfig, static::superglobals());
4949

5050
return $factory->createFromGlobals();
5151
}

0 commit comments

Comments
 (0)