diff --git a/packages/framework/tests/Unit/BuildTaskServiceUnitTest.php b/packages/framework/tests/Unit/BuildTaskServiceUnitTest.php index f5634463256..630c48399b3 100644 --- a/packages/framework/tests/Unit/BuildTaskServiceUnitTest.php +++ b/packages/framework/tests/Unit/BuildTaskServiceUnitTest.php @@ -151,16 +151,12 @@ public function testCanOverloadFrameworkTasks() public function testCanSetOutputWithNull() { - $this->can(function () { - $this->service->setOutput(null); - }); + $this->can(fn () => $this->service->setOutput(null)); } public function testCanSetOutputWithOutputStyle() { - $this->can(function () { - $this->service->setOutput(Mockery::mock(OutputStyle::class)); - }); + $this->can(fn () => $this->service->setOutput(Mockery::mock(OutputStyle::class))); } public function testGenerateBuildManifestExtendsPostBuildTask()