Skip to content

Commit

Permalink
fix: finding original file using compiled filepath
Browse files Browse the repository at this point in the history
  • Loading branch information
SocolaDaiCa committed Jan 3, 2023
1 parent a66d17a commit 3036d5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Views/ViewExceptionMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ protected function getKnownPaths(): array
foreach ($lastCompiled as $lastCompiledPath) {
$compiledPath = $this->compilerEngine->getCompiler()->getCompiledPath($lastCompiledPath);

$knownPaths[$compiledPath ?? $lastCompiledPath] = $lastCompiledPath;
$knownPaths[realpath($compiledPath ?? $lastCompiledPath)] = realpath($lastCompiledPath);
}

return $knownPaths;
Expand Down

0 comments on commit 3036d5a

Please sign in to comment.