# upstream/trunk/vendor/symfony/debug/Tests/Fixtures/LoggerThatSetAnErrorHandler.php

UpStream: a Project Management Plugin for WordPress, version trunk. 16 lines.

- Page: https://pluginprobe.com/plugins/upstream/trunk/code/vendor/symfony/debug/Tests/Fixtures/LoggerThatSetAnErrorHandler.php
- Raw: https://pluginprobe.com/plugins/upstream/trunk/raw/vendor/symfony/debug/Tests/Fixtures/LoggerThatSetAnErrorHandler.php
- Modified: 2024-05-22T12:40:54+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/upstream/trunk/code/vendor/symfony/debug/Tests/Fixtures/LoggerThatSetAnErrorHandler.php#L10-L20`.

```php
<?php

namespace Symfony\Component\Debug\Tests\Fixtures;

use Symfony\Component\Debug\BufferingLogger;

class LoggerThatSetAnErrorHandler extends BufferingLogger
{
    public function log($level, $message, array $context = [])
    {
        set_error_handler('is_string');
        parent::log($level, $message, $context);
        restore_error_handler();
    }
}

```
