From c5594a95711db1a25229616e25132519f54346d1 Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Mon, 9 Sep 2024 10:48:32 +0200 Subject: [PATCH] Normalize closure syntax --- packages/framework/tests/Unit/BuildTaskServiceUnitTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/framework/tests/Unit/BuildTaskServiceUnitTest.php b/packages/framework/tests/Unit/BuildTaskServiceUnitTest.php index 630c48399b3..ca381fe3d37 100644 --- a/packages/framework/tests/Unit/BuildTaskServiceUnitTest.php +++ b/packages/framework/tests/Unit/BuildTaskServiceUnitTest.php @@ -181,12 +181,12 @@ public function testGenerateSitemapExtendsPostBuildTask() public function testCanRunPreBuildTasks() { - $this->can($this->service->runPreBuildTasks(...)); + $this->can(fn () => $this->service->runPreBuildTasks(...)); } public function testCanRunPostBuildTasks() { - $this->can($this->service->runPostBuildTasks(...)); + $this->can(fn () => $this->service->runPostBuildTasks(...)); } public function testCanRunPreBuildTasksWithTasks()