Skip to content

Commit

Permalink
AutoloadSourceLocator - store the first included file
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Apr 26, 2022
1 parent 2f49187 commit 63ef0a9
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ public static function withStreamWrapperOverride(
*/
public function stream_open($path, $mode, $options, &$openedPath): bool
{
self::$autoloadLocatedFile = $path;
if (self::$autoloadLocatedFile === null) {
self::$autoloadLocatedFile = $path;
}
$this->readFromFile = false;
$this->seekPosition = 0;

Expand Down

0 comments on commit 63ef0a9

Please sign in to comment.