Skip to content

Commit

Permalink
Merge branch '5.4' into 6.4
Browse files Browse the repository at this point in the history
* 5.4:
  Make more nullable types explicit
  Add more explicit nullable types for default null values
  • Loading branch information
derrabus committed Mar 19, 2024
2 parents 8c95956 + a4841ab commit 46df6c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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 $array;

public function __construct(array $array = null)
public function __construct(?array $array = null)
{
$this->array = $array ?: [];
}
Expand Down
2 changes: 1 addition & 1 deletion Tests/Fixtures/FixedTranslator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 46df6c8

Please sign in to comment.