Skip to content

Commit 16a645c

Browse files
fprochazkanicolas-grekas
authored andcommitted
Catch \Throwable
1 parent bca1748 commit 16a645c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Loader/FileLoader.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ public function import($resource, $type = null, $ignoreErrors = false, $sourceRe
108108
} catch (\Exception $e) {
109109
unset(self::$loading[$resource]);
110110
throw $e;
111+
} catch (\Throwable $e) {
112+
unset(self::$loading[$resource]);
113+
throw $e;
111114
}
112115

113116
unset(self::$loading[$resource]);

0 commit comments

Comments
 (0)