Skip to content

Commit ee8373f

Browse files
committed
Implement catching for all Errors - ref Magento issue #23350
1 parent 7ad8863 commit ee8373f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/internal/Magento/Framework/App/Bootstrap.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,8 @@ public function run(AppInterface $application)
269269
}
270270
} catch (\Exception $e) {
271271
$this->terminate($e);
272+
} catch (\Error $e) {
273+
$this->terminate($e);
272274
}
273275
} // phpcs:enable
274276

@@ -418,12 +420,12 @@ public function isDeveloperMode()
418420
/**
419421
* Display an exception and terminate program execution
420422
*
421-
* @param \Exception $e
423+
* @param \Throwable $e
422424
* @return void
423425
*
424426
* phpcs:disable Magento2.Security.LanguageConstruct, Squiz.Commenting.FunctionCommentThrowTag
425427
*/
426-
protected function terminate(\Exception $e)
428+
protected function terminate(\Throwable $e)
427429
{
428430

429431
if ($this->isDeveloperMode()) {

0 commit comments

Comments
 (0)