Patch-Source: https://github.com/igbinary/igbinary/issues/389 --- a/tests/__serialize_020.phpt 2024-07-04 14:43:45.826217797 +0200 +++ b/tests/__serialize_020.phpt 2024-07-04 14:52:19.598500747 +0200 @@ -23,7 +23,7 @@ $this->transports[$event->getTransport()] = true; } - public function getEvents(string $name = null): array + public function getEvents(?string $name = null): array { return $this->events; } @@ -229,7 +229,7 @@ return array_shift($values); } - public function all(string $name = null): iterable + public function all(?string $name = null): iterable { if (null === $name) { foreach ($this->headers as $name => $collection) { @@ -305,7 +305,7 @@ class Message extends RawMessage { - public function __construct(Headers $headers = null, AbstractPart $body = null) + public function __construct(?Headers $headers = null, ?AbstractPart $body = null) { $this->headers = $headers ? clone $headers : new Headers(); $this->body = $body;