Переглянути джерело

Merge pull request #427 from vshvoruk/error-handling-fix-laravel6

Fix ErrorHandlingUtils for Laravel 6
Shalvah 3 роки тому
батько
коміт
f9790e9bdf
1 змінених файлів з 1 додано та 1 видалено
  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));