Skip to content

Commit

Permalink
fix: catch fatal error during install hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
callingmedic911 committed Dec 2, 2020
1 parent ca65bf8 commit 683cc21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Helpers/ComposerScripts.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public static function preInstall($event)
\Illuminate\Foundation\ComposerScripts::postInstall($event);
}
static::clear();
} catch (\Exception $e) {
} catch (\Throwable $e) {
// catch all
}
}
Expand All @@ -41,7 +41,7 @@ public static function preUpdate($event)
\Illuminate\Foundation\ComposerScripts::postUpdate($event);
}
static::clear();
} catch (\Exception $e) {
} catch (\Throwable $e) {
// catch all
}
}
Expand Down

0 comments on commit 683cc21

Please sign in to comment.