Skip to content

Commit 9d6bcfc

Browse files
authored
Fix build (#1954)
* Fix build * Update phpstan-baseline.neon * better fix
1 parent 45b5e0e commit 9d6bcfc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Monolog/Handler/BufferHandler.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ public function getFormatter(): FormatterInterface
163163
throw new \UnexpectedValueException('The nested handler of type '.\get_class($this->handler).' does not support formatters.');
164164
}
165165

166-
public function setHandler(HandlerInterface $handler)
166+
public function setHandler(HandlerInterface $handler): void
167167
{
168168
$this->handler = $handler;
169169
}

tests/Monolog/Formatter/ElasticsearchFormatterTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function testFormat()
3434

3535
// Expected values
3636
$expected = $msg->toArray();
37-
$expected['datetime'] = '1970-01-01T00:00:00+0000';
37+
$expected['datetime'] = '1970-01-01T00:00:00+00:00';
3838
$expected['context'] = [
3939
'class' => ['stdClass' => []],
4040
'foo' => 7,

0 commit comments

Comments
 (0)