diff --git a/src/Console/MetaCommand.php b/src/Console/MetaCommand.php index 68b3e7f..7011fa9 100644 --- a/src/Console/MetaCommand.php +++ b/src/Console/MetaCommand.php @@ -90,7 +90,7 @@ class MetaCommand extends Command if (is_object($concrete)) { $bindings[$abstract] = get_class($concrete); } - } catch (\Exception $e) { + } catch (\Throwable $e) { if ($this->output->getVerbosity() >= OutputInterface::VERBOSITY_VERBOSE) { $this->comment("Cannot make '$abstract': ".$e->getMessage()); } diff --git a/src/Console/ModelsCommand.php b/src/Console/ModelsCommand.php index 162d2e4..9c3ccbe 100644 --- a/src/Console/ModelsCommand.php +++ b/src/Console/ModelsCommand.php @@ -217,7 +217,7 @@ class ModelsCommand extends Command $output .= $this->createPhpDocs($name); $ignore[] = $name; $this->nullableColumns = []; - } catch (\Exception $e) { + } catch (\Throwable $e) { $this->error("Exception: " . $e->getMessage() . "\nCould not analyze class $name."); } }