Forráskód Böngészése

Fix ErrorHandlingUtils for Laravel 6

vshvoruk 3 éve
szülő
commit
fda6c19d4a
1 módosított fájl, 1 hozzáadás és 1 törlés
  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);
         try {
             $handler = new \NunoMaduro\Collision\Handler(new \NunoMaduro\Collision\Writer(null, $output));
-        } catch (\Exception $e) {
+        } catch (\Throwable $error) {
             // Version 3 used a different API
             // todo remove when Laravel 7 is minimum supported
             $handler = new \NunoMaduro\Collision\Handler(new \NunoMaduro\Collision\Writer($output));