From 9ef14f83be22adf950f92a2ddb705d6331475d1c Mon Sep 17 00:00:00 2001 From: leo108 Date: Wed, 27 Mar 2019 12:56:31 +0800 Subject: [PATCH] use Throwable instead of Exception (#779) --- src/Console/MetaCommand.php | 2 +- src/Console/ModelsCommand.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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."); } }