for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Class for fatal errors handling
*
* @file FatalErrorHandler.php
* PHP version 8.0+
* @author Yancharuk Alexander <alex at itvault dot info>
* @copyright © 2012-2021 Alexander Yancharuk
* @date 2015-08-10 06:02
* @license The BSD 3-Clause License
* <https://tldrlegal.com/license/bsd-3-clause-license-(revised)>
*/
namespace Veles\ErrorHandler;
* Class FatalErrorHandler
class FatalErrorHandler extends BaseErrorHandler
{
public function run()
if (null === ($this->vars = error_get_last())) {
return;
}
$this->vars['time'] = $this->getTime();
$this->vars['stack'] = [];
$this->vars['defined'] = [];
$this->notify();