Find a Rector rule
Find the best Rector rule to solve your problem. Searching through 1111 rules.
Found 2 rules, grouped by set: Clear
symfony/filesystem
2 matches
EmptyBasePathToRootRector
symfony/filesystem >=8.2
Replace deprecated empty base path of Path::isBasePath() with "/"
use Symfony\Component\Filesystem\Path;
-$isBasePath = Path::isBasePath('', $path);
+$isBasePath = Path::isBasePath('/', $path);
RenameCopyOnWindowsOptionToFollowSymlinksRector
symfony/filesystem >=8.1
Rename copy_on_windows option to follow_symlinks in Filesystem::mirror()
use Symfony\Component\Filesystem\Filesystem;
final class Foo
{
public function __construct(private Filesystem $filesystem) {}
public function bar($originDir, $targetDir): void
{
- $this->filesystem->mirror(targetDir: $originDir, originDir: $targetDir, options: $options = ['copy_on_windows' => true]);
+ $this->filesystem->mirror(targetDir: $originDir, originDir: $targetDir, options: $options = ['follow_symlinks' => true]);
}
}