File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
lib/internal/Magento/Framework/App Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -269,6 +269,8 @@ public function run(AppInterface $application)
269
269
}
270
270
} catch (\Exception $ e ) {
271
271
$ this ->terminate ($ e );
272
+ } catch (\Error $ e ) {
273
+ $ this ->terminate ($ e );
272
274
}
273
275
} // phpcs:enable
274
276
@@ -418,12 +420,12 @@ public function isDeveloperMode()
418
420
/**
419
421
* Display an exception and terminate program execution
420
422
*
421
- * @param \Exception $e
423
+ * @param \Throwable $e
422
424
* @return void
423
425
*
424
426
* phpcs:disable Magento2.Security.LanguageConstruct, Squiz.Commenting.FunctionCommentThrowTag
425
427
*/
426
- protected function terminate (\Exception $ e )
428
+ protected function terminate (\Throwable $ e )
427
429
{
428
430
429
431
if ($ this ->isDeveloperMode ()) {
You can’t perform that action at this time.
0 commit comments