ERROR: Undefined constant "MailSo\Log\Drivers\STDERR" #965

This commit is contained in:
the-djmaze 2023-03-14 10:53:18 +01:00
parent 2201060888
commit 4bd9535219

View file

@ -20,6 +20,9 @@ class StderrStream extends \MailSo\Log\Driver
{
protected function writeImplementation($mDesc) : bool
{
if (!\defined('STDERR')) {
\define('STDERR', \fopen('php://stderr', 'wb'));
}
return 0 < \fwrite(STDERR, $mDesc . "\n");
}