Skip to content

Commit 7159da1

Browse files
TomasVotrubajaapio
authored andcommitted
make pref-file_exists condition more explicit
1 parent 06c9055 commit 7159da1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Types/ContextFactory.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function createFromReflector(\Reflector $reflector)
4747
$fileName = $reflector->getFileName();
4848
$namespace = $reflector->getNamespaceName();
4949

50-
if ($fileName && file_exists($fileName)) {
50+
if (is_string($fileName) && file_exists($fileName)) {
5151
return $this->createForNamespace($namespace, file_get_contents($fileName));
5252
}
5353

0 commit comments

Comments
 (0)