function CodeUnit::ensureFileExistsAndIsReadable
Throws
1 call to CodeUnit::ensureFileExistsAndIsReadable()
- CodeUnit::forFileWithAbsolutePath in vendor/
sebastian/ code-unit/ src/ CodeUnit.php
File
-
vendor/
sebastian/ code-unit/ src/ CodeUnit.php, line 284
Class
- CodeUnit
- @psalm-immutable
Namespace
SebastianBergmann\CodeUnitCode
private static function ensureFileExistsAndIsReadable(string $path) : void {
if (!(file_exists($path) && is_readable($path))) {
throw new InvalidCodeUnitException(sprintf('File "%s" does not exist or is not readable', $path));
}
}