Skip to content

Commit

Permalink
can't call log this early
Browse files Browse the repository at this point in the history
  • Loading branch information
demeritcowboy committed Sep 23, 2022
1 parent 12deedc commit 75d7130
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Civi/Core/ClassScanner.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ public static function scanFolders(array &$classes, string $classRoot, string $c
}
elseif (!interface_exists($class) && !trait_exists($class)) {
// If you get this error, then perhaps (a) you need to fix the name of file/class/namespace or (b) you should disable class-scanning.
\Civi::log('class_scanner')->warning("Scanned file {$relFile} for class {$class}, but it was not found.");
throw new \RuntimeException("Scanned file {$relFile} for class {$class}, but it was not found.");
}
}
}
Expand Down

0 comments on commit 75d7130

Please sign in to comment.