mirror of
https://github.com/barryvdh/ReflectionDocBlock.git
synced 2026-08-22 03:53:08 +00:00
bump phpstan to master. Fixed ignored errors
This commit is contained in:
@@ -14,7 +14,6 @@ declare(strict_types=1);
|
||||
namespace phpDocumentor\Reflection\DocBlock;
|
||||
|
||||
use phpDocumentor\Reflection\DocBlock\Tags\Example;
|
||||
use const DIRECTORY_SEPARATOR;
|
||||
use function array_slice;
|
||||
use function file;
|
||||
use function getcwd;
|
||||
@@ -23,6 +22,7 @@ use function is_readable;
|
||||
use function rtrim;
|
||||
use function sprintf;
|
||||
use function trim;
|
||||
use const DIRECTORY_SEPARATOR;
|
||||
|
||||
/**
|
||||
* Class used to find an example file's location based on a given ExampleDescriptor.
|
||||
@@ -122,6 +122,7 @@ class ExampleFinder
|
||||
}
|
||||
|
||||
$lines = $normalizedPath && is_readable($normalizedPath) ? file($normalizedPath) : false;
|
||||
|
||||
return $lines !== false ? $lines : null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user