We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 06c9055 commit 7159da1Copy full SHA for 7159da1
src/Types/ContextFactory.php
@@ -47,7 +47,7 @@ public function createFromReflector(\Reflector $reflector)
47
$fileName = $reflector->getFileName();
48
$namespace = $reflector->getNamespaceName();
49
50
- if ($fileName && file_exists($fileName)) {
+ if (is_string($fileName) && file_exists($fileName)) {
51
return $this->createForNamespace($namespace, file_get_contents($fileName));
52
}
53
0 commit comments