Browse Source

Fix ErrorHandlingUtils for Laravel 6

vshvoruk 3 years ago
parent
commit
fda6c19d4a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Tools/ErrorHandlingUtils.php

+ 1 - 1
src/Tools/ErrorHandlingUtils.php

@@ -33,7 +33,7 @@ class ErrorHandlingUtils
         $output = new ConsoleOutput(OutputInterface::VERBOSITY_VERBOSE);
         $output = new ConsoleOutput(OutputInterface::VERBOSITY_VERBOSE);
         try {
         try {
             $handler = new \NunoMaduro\Collision\Handler(new \NunoMaduro\Collision\Writer(null, $output));
             $handler = new \NunoMaduro\Collision\Handler(new \NunoMaduro\Collision\Writer(null, $output));
-        } catch (\Exception $e) {
+        } catch (\Throwable $error) {
             // Version 3 used a different API
             // Version 3 used a different API
             // todo remove when Laravel 7 is minimum supported
             // todo remove when Laravel 7 is minimum supported
             $handler = new \NunoMaduro\Collision\Handler(new \NunoMaduro\Collision\Writer($output));
             $handler = new \NunoMaduro\Collision\Handler(new \NunoMaduro\Collision\Writer($output));