Skip to content

Commit

Permalink
[TASK] Avoid implicitly nullable class method parameter
Browse files Browse the repository at this point in the history
With PHP 8.4 marking method parameter implicitly nullable
is deprecated and will emit a `E_DEPRECATED` warning. One
recommended way to resolve this, is making it explicitly
nullable using the `?` nullable operator or adding a null
type to an union type definition. [[1]](https://php.watch/versions/8.4/implicitly-marking-parameter-type-nullable-deprecated)

This prepares the way towards PHP 8.4 compatibility.

* [[1] https://php.watch/versions/8.4/implicitly-marking-parameter-type-nullable-deprecated](https://php.watch/versions/8.4/implicitly-marking-parameter-type-nullable-deprecated)

Resolves: #344
  • Loading branch information
sbuerk committed Jun 30, 2024
1 parent dea7d0d commit e033d2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/Functional/Fixtures/Traits/SiteBasedTestTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ protected function buildLanguageConfiguration(
string $identifier,
string $base,
array $fallbackIdentifiers = [],
string $fallbackType = null
?string $fallbackType = null
): array {
$preset = $this->resolveLanguagePreset($identifier);

Expand Down

0 comments on commit e033d2d

Please sign in to comment.