Skip to content

Commit 0cd56b4

Browse files
committed
[BUGFIX] Fix failing functional tests
1 parent 1c7cf3e commit 0cd56b4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Tests/Functional/Controller/FlagResolver/PhpFileFlagResolverTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function closureFunctionIsApplied($filePattern)
5858
$this->assertNotEmpty($files);
5959

6060
foreach ($files as $file => $fileContent) {
61-
$this->assertStringContainsString('call_user_func(function () {', $fileContent);
61+
$this->assertStringContainsString('call_user_func(static function () {', $fileContent);
6262
}
6363
}
6464

Tests/Unit/FileCollection/PhpFileCollectionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,6 @@ public function getFilesCombinesPhpFileFlags()
6161

6262
$this->assertArrayHasKey('ext_tables.php', $files);
6363
$this->assertContains('defined(\'TYPO3_MODE\') || die();', $files['ext_tables.php']);
64-
$this->assertContains('call_user_func(function () {', $files['ext_tables.php']);
64+
$this->assertContains('call_user_func(static function () {', $files['ext_tables.php']);
6565
}
6666
}

0 commit comments

Comments
 (0)