Skip to content

Commit

Permalink
make pref-file_exists condition more explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba authored and jaapio committed Nov 15, 2017
1 parent 06c9055 commit 7159da1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Types/ContextFactory.php
Expand Up @@ -47,7 +47,7 @@ public function createFromReflector(\Reflector $reflector)
$fileName = $reflector->getFileName();
$namespace = $reflector->getNamespaceName();

if ($fileName && file_exists($fileName)) {
if (is_string($fileName) && file_exists($fileName)) {
return $this->createForNamespace($namespace, file_get_contents($fileName));
}

Expand Down

0 comments on commit 7159da1

Please sign in to comment.