From e033d2ded2d97ea239848c9b15301e8f2c5a911d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20B=C3=BCrk?= Date: Mon, 1 Jul 2024 00:12:43 +0200 Subject: [PATCH] [TASK] Avoid implicitly nullable class method parameter 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 --- Tests/Functional/Fixtures/Traits/SiteBasedTestTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/Functional/Fixtures/Traits/SiteBasedTestTrait.php b/Tests/Functional/Fixtures/Traits/SiteBasedTestTrait.php index 0c67890d..7a243c6a 100644 --- a/Tests/Functional/Fixtures/Traits/SiteBasedTestTrait.php +++ b/Tests/Functional/Fixtures/Traits/SiteBasedTestTrait.php @@ -119,7 +119,7 @@ protected function buildLanguageConfiguration( string $identifier, string $base, array $fallbackIdentifiers = [], - string $fallbackType = null + ?string $fallbackType = null ): array { $preset = $this->resolveLanguagePreset($identifier);