Skip to content

Commit 8469402

Browse files
committed
fix: throw exception when registering composer that does not exists
1 parent e6e77f8 commit 8469402

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/classes/Common/View/ViewComposerRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ private function registerComposers(): void
5151

5252
foreach ($composers as $composer) {
5353
if (! is_string($composer) || ! is_subclass_of($composer, ViewComposer::class)) {
54-
continue;
54+
throw new LogicException('Composer [' . $composer . '] does not exists.');
5555
}
5656

5757
$this->mapComposerToViews($composer);

0 commit comments

Comments
 (0)