diff --git a/tests/Helper/ConfigurationHelperTest.php b/tests/Helper/ConfigurationHelperTest.php index 06de7d5..31dbdbe 100644 --- a/tests/Helper/ConfigurationHelperTest.php +++ b/tests/Helper/ConfigurationHelperTest.php @@ -236,10 +236,12 @@ public function testGetPageModel() $pageModelAdapter = $this->mockAdapter(['findByPk']); $pageModelAdapter->method('findByPk')->willReturnCallback(function ($id) { - return match ($id) { - '3' => $this->mockClassWithProperties(PageModel::class, ['layoutId' => 3]), - default => null, - }; + switch ($id) { + case '3': + return $this->mockClassWithProperties(PageModel::class, ['layoutId' => 3]); + default: + return null; + } }); $contaoFramework = $this->mockContaoFramework([