diff --git a/Tests/Fixtures/CustomArrayObject.php b/Tests/Fixtures/CustomArrayObject.php index b37bfe5ed..8be0323ae 100644 --- a/Tests/Fixtures/CustomArrayObject.php +++ b/Tests/Fixtures/CustomArrayObject.php @@ -19,7 +19,7 @@ class CustomArrayObject implements \ArrayAccess, \IteratorAggregate, \Countable { private array $array; - public function __construct(array $array = null) + public function __construct(?array $array = null) { $this->array = $array ?: []; } diff --git a/Tests/Fixtures/FixedTranslator.php b/Tests/Fixtures/FixedTranslator.php index 1fc0fa901..432f2ab12 100644 --- a/Tests/Fixtures/FixedTranslator.php +++ b/Tests/Fixtures/FixedTranslator.php @@ -22,7 +22,7 @@ public function __construct(array $translations) $this->translations = $translations; } - public function trans(string $id, array $parameters = [], string $domain = null, string $locale = null): string + public function trans(string $id, array $parameters = [], ?string $domain = null, ?string $locale = null): string { return $this->translations[$id] ?? $id; }