mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-07 11:50:51 +00:00
[PHPStan] Skip PHPStan error message on RectorConfigsResolver check realpath (#1126)
This commit is contained in:
parent
539f70a5b5
commit
2b09156f51
|
@ -526,3 +526,7 @@ parameters:
|
|||
-
|
||||
path: packages/Caching/ValueObject/Storage/FileCacheStorage.php
|
||||
message: '#Instead of "Nette\\Utils\\FileSystem" class/interface use "Symplify\\SmartFileSystem\\SmartFileSystem"#'
|
||||
|
||||
-
|
||||
path: src/Bootstrap/RectorConfigsResolver.php
|
||||
message: '#Method Rector\\Core\\Bootstrap\\RectorConfigsResolver\:\:resolveFromInput\(\) should return string\|null but returns string\|false#'
|
||||
|
|
|
@ -52,9 +52,7 @@ final class RectorConfigsResolver
|
|||
throw new FileNotFoundException($message);
|
||||
}
|
||||
|
||||
/** @var string $configFile */
|
||||
$configFile = realpath($configFile);
|
||||
return $configFile;
|
||||
return realpath($configFile);
|
||||
}
|
||||
|
||||
private function resolveFromInputWithFallback(ArgvInput $argvInput, string $fallbackFile): ?string
|
||||
|
|
Loading…
Reference in New Issue
Block a user