Skip to content

Commit 4501bcc

Browse files
authored
old bug sync
allow the error type with throwable exception
1 parent f980f24 commit 4501bcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Instrument/ClassLoading/CacheWarmer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function warmUp()
6868

6969
$errors = [];
7070

71-
$displayException = function (\Exception $exception, $path) use (&$errors) {
71+
$displayException = function (\Throwable $exception, $path) use (&$errors) {
7272
$this->output->writeln(sprintf('<fg=white;bg=red;options=bold>[ERR]</>: %s', $path));
7373
$errors[$path] = $exception->getMessage();
7474
};

0 commit comments

Comments
 (0)