Sfoglia il codice sorgente

Fix build (#1954)

* Fix build

* Update phpstan-baseline.neon

* better fix
Markus Staab 10 mesi fa
parent
commit
9d6bcfc94d

+ 1 - 1
src/Monolog/Handler/BufferHandler.php

@@ -163,7 +163,7 @@ class BufferHandler extends AbstractHandler implements ProcessableHandlerInterfa
         throw new \UnexpectedValueException('The nested handler of type '.\get_class($this->handler).' does not support formatters.');
     }
 
-    public function setHandler(HandlerInterface $handler)
+    public function setHandler(HandlerInterface $handler): void
     {
         $this->handler = $handler;
     }

+ 1 - 1
tests/Monolog/Formatter/ElasticsearchFormatterTest.php

@@ -34,7 +34,7 @@ class ElasticsearchFormatterTest extends TestCase
 
         // Expected values
         $expected = $msg->toArray();
-        $expected['datetime'] = '1970-01-01T00:00:00+0000';
+        $expected['datetime'] = '1970-01-01T00:00:00+00:00';
         $expected['context'] = [
             'class' => ['stdClass' => []],
             'foo' => 7,