Skip to content

Commit

Permalink
Fix path checking for the existence of a namespaced helper file
Browse files Browse the repository at this point in the history
  • Loading branch information
yllumi committed Dec 30, 2024
1 parent 0bc67db commit b93c8d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/Common.php
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ function helper($filenames): void
if (str_contains($filename, '\\')) {
$path = $loader->locateFile($filename, 'Helpers');

if ($path !== '') {
if (!$path) {
throw FileNotFoundException::forFileNotFound($filename);
}

Expand Down

0 comments on commit b93c8d7

Please sign in to comment.