Skip to content

Commit

Permalink
AutoloadSourceLocator - handled nonexistent file reported by Reflecti…
Browse files Browse the repository at this point in the history
…onFunction::getFileName()
  • Loading branch information
ondrejmirtes committed Nov 20, 2020
1 parent e5c5e32 commit f000222
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ public function locateIdentifier(Reflector $reflector, Identifier $identifier):
if (!is_string($reflectionFileName)) {
return null;
}
if (!file_exists($reflectionFileName)) {
return null;
}

return $this->findReflection($reflector, $reflectionFileName, $identifier, null);
}
Expand Down

0 comments on commit f000222

Please sign in to comment.