LoggerThatSetAnErrorHandler.php 296 B

1234567891011121314
  1. <?php
  2. namespace Symfony\Component\Debug\Tests\Fixtures;
  3. use Psr\Log\AbstractLogger;
  4. class LoggerThatSetAnErrorHandler extends AbstractLogger
  5. {
  6. public function log($level, $message, array $context = [])
  7. {
  8. set_error_handler('is_string');
  9. restore_error_handler();
  10. }
  11. }