Skip to content

Commit d4021aa

Browse files
committed
catch exceptions
1 parent ded070b commit d4021aa

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Console/StatusCommand.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,12 @@ private function getProjectClasses(): array
9494
foreach ($configFiles->files() as $file) {
9595
try {
9696
require_once $file;
97-
} catch (\Throwable $e) {
97+
} catch (\Exception $e) {
98+
//skiping if the file cannot be loaded
99+
}
100+
catch (\Throwable $e) {
98101
//skiping if the file cannot be loaded
99102
}
100-
101-
}
102103

103104
self::$declaredClasses = get_declared_classes();
104105
}

0 commit comments

Comments
 (0)