diff --git a/packages/Caching/ValueObject/Storage/FileCacheStorage.php b/packages/Caching/ValueObject/Storage/FileCacheStorage.php index 7005b44e969..6f512d609ea 100644 --- a/packages/Caching/ValueObject/Storage/FileCacheStorage.php +++ b/packages/Caching/ValueObject/Storage/FileCacheStorage.php @@ -5,8 +5,8 @@ declare(strict_types=1); namespace Rector\Caching\ValueObject\Storage; use FilesystemIterator; +use Nette\Utils\FileSystem; use Nette\Utils\Random; -use PHPStan\File\FileWriter; use Rector\Caching\Contract\ValueObject\Storage\CacheStorageInterface; use Rector\Caching\ValueObject\CacheFilePaths; use Rector\Caching\ValueObject\CacheItem; @@ -70,7 +70,7 @@ final class FileCacheStorage implements CacheStorageInterface } // for performance reasons we don't use SmartFileSystem - FileWriter::write($tmpPath, \sprintf("\) does not accept array#' - '#Property Rector\\Transform\\Rector\\FuncCall\\ArgumentFuncCallToMethodCallRector\:\:\$argumentFuncCallToMethodCalls \(array\) does not accept array#' + # use lighter service for performance reasons + - + path: packages/Caching/ValueObject/Storage/FileCacheStorage.php + message: '#Instead of "Nette\\Utils\\FileSystem" class/interface use "Symplify\\SmartFileSystem\\SmartFileSystem"#'