diff --git a/extensions/mentions/src/TagExtender.php b/extensions/mentions/src/TagExtender.php index 0974563bb1..d32fe60f58 100644 --- a/extensions/mentions/src/TagExtender.php +++ b/extensions/mentions/src/TagExtender.php @@ -1,5 +1,12 @@ when(function (ExtensionManager $extensions) use ($extensionId) { - return !$extensions->isEnabled($extensionId); + return ! $extensions->isEnabled($extensionId); }, $extenders); } diff --git a/framework/core/tests/integration/extenders/ConditionalTest.php b/framework/core/tests/integration/extenders/ConditionalTest.php index 19a523d935..3dc8c021b8 100644 --- a/framework/core/tests/integration/extenders/ConditionalTest.php +++ b/framework/core/tests/integration/extenders/ConditionalTest.php @@ -246,7 +246,7 @@ public function conditional_enabled_extension_enabled_applies_invokable_class() $this->assertArrayHasKey('customConditionalAttribute', $payload['data']['attributes']); } - + /** @test */ public function conditional_does_not_instantiate_extender_if_condition_is_false_using_callable() {