[PHPStan] Skip PHPStan error message on RectorConfigsResolver check realpath (#1126)

This commit is contained in:
Abdul Malik Ikhsan 2021-11-02 00:41:10 +07:00 committed by GitHub
parent 539f70a5b5
commit 2b09156f51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -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#'

View File

@ -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