From 4d107c2d548111156cdc4a12d12d8561d619c3c3 Mon Sep 17 00:00:00 2001 From: Alexandre Daubois Date: Sat, 16 Mar 2024 08:20:26 +0100 Subject: [PATCH] Add more explicit nullable types for default null values --- Tests/Fixtures/CustomArrayObject.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/Fixtures/CustomArrayObject.php b/Tests/Fixtures/CustomArrayObject.php index 4ca7f4a99..7bc850ddc 100644 --- a/Tests/Fixtures/CustomArrayObject.php +++ b/Tests/Fixtures/CustomArrayObject.php @@ -19,7 +19,7 @@ class CustomArrayObject implements \ArrayAccess, \IteratorAggregate, \Countable, { private $array; - public function __construct(array $array = null) + public function __construct(?array $array = null) { $this->array = $array ?: []; }