Skip to content

Commit 4d107c2

Browse files
Add more explicit nullable types for default null values
1 parent 9304c6b commit 4d107c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/Fixtures/CustomArrayObject.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class CustomArrayObject implements \ArrayAccess, \IteratorAggregate, \Countable,
1919
{
2020
private $array;
2121

22-
public function __construct(array $array = null)
22+
public function __construct(?array $array = null)
2323
{
2424
$this->array = $array ?: [];
2525
}

0 commit comments

Comments
 (0)