Explorar el Código

Fix ErrorHandlingUtils for Laravel 6

vshvoruk hace 3 años
padre
commit
fda6c19d4a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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));