Skip to content

Commit

Permalink
Add more explicit nullable types for default null values
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandre-daubois committed Mar 18, 2024
1 parent 9304c6b commit 4d107c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/Fixtures/CustomArrayObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ?: [];
}
Expand Down

0 comments on commit 4d107c2

Please sign in to comment.