EmptyBasePathToRootRector
Replace deprecated empty base path of Path::isBasePath() with "/"
use Symfony\Component\Filesystem\Path;
-$isBasePath = Path::isBasePath('', $path);
+$isBasePath = Path::isBasePath('/', $path);
Configure your rector.php:
<?php
use Rector\Config\RectorConfig;
use Rector\Symfony\Symfony82\Rector\StaticCall\EmptyBasePathToRootRector;
return RectorConfig::configure()
->withRules([
EmptyBasePathToRootRector::class,
]);
PACKAGE:
symfony/filesystem >=8.2