mirror of
https://github.com/Combodo/iTop.git
synced 2026-03-03 16:14:13 +01:00
- Autoloader for portal files in the itop-portal-base module - Dependencies moved to root composer.json - Add autoloader for /core and /application content
23 lines
492 B
PHP
23 lines
492 B
PHP
<?php
|
|
|
|
namespace Symfony\Component\Debug\Tests\Fixtures;
|
|
|
|
class ErrorHandlerThatUsesThePreviousOne
|
|
{
|
|
private static $previous;
|
|
|
|
public static function register()
|
|
{
|
|
$handler = new static();
|
|
|
|
self::$previous = set_error_handler([$handler, 'handleError']);
|
|
|
|
return $handler;
|
|
}
|
|
|
|
public function handleError($type, $message, $file, $line, $context)
|
|
{
|
|
return \call_user_func(self::$previous, $type, $message, $file, $line, $context);
|
|
}
|
|
}
|