tikiwiki/packages/tiki-pkg-mediaalchemyst/symfony/debug/Tests/Fixtures/LoggerThatSetAnErrorHandler.php

16 lines
369 B
PHP
Raw Permalink Normal View History

2023-11-20 21:52:04 +01:00
<?php
namespace Symfony\Component\Debug\Tests\Fixtures;
use Symfony\Component\Debug\BufferingLogger;
class LoggerThatSetAnErrorHandler extends BufferingLogger
{
public function log($level, $message, array $context = []): void
{
set_error_handler('is_string');
parent::log($level, $message, $context);
restore_error_handler();
}
}