Skip to content

Commit 9847a17

Browse files
committed
[BUGFIX] Prevent explicit nullable type deprecation warning
1 parent eaa422d commit 9847a17

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Classes/Backend/LayoutSetup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ public function getLanguageService(): LanguageService
750750
*
751751
* @param LanguageService|null $languageService
752752
*/
753-
public function setLanguageService(LanguageService $languageService = null): void
753+
public function setLanguageService(?LanguageService $languageService = null): void
754754
{
755755
if ($languageService instanceof LanguageService) {
756756
$this->languageService = $languageService;

Classes/Plugin/Gridelements.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ public function main(string $content = '', array $conf = []): string
174174
* @param array|null $child
175175
* @deprecated use the recommended static file based on DataProcessing instead of a USER cObject, will be removed in Gridelements v11.0
176176
*/
177-
public function initPluginFlexForm(string $field = 'pi_flexform', array &$child = null)
177+
public function initPluginFlexForm(string $field = 'pi_flexform', ?array &$child = null)
178178
{
179179
$this->flexFormTools = GeneralUtility::makeInstance(FlexFormTools::class);
180180
// Converting flexform data into array:

0 commit comments

Comments
 (0)