From 0549555235ee7d80a9c8c632b9f9899df667a07d Mon Sep 17 00:00:00 2001 From: Sami Mazouz Date: Thu, 28 Mar 2024 20:25:08 +0100 Subject: [PATCH] fix: breaking change --- extensions/tags/src/Api/DiscussionResourceFields.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/tags/src/Api/DiscussionResourceFields.php b/extensions/tags/src/Api/DiscussionResourceFields.php index 832641685d..1bc643ae09 100644 --- a/extensions/tags/src/Api/DiscussionResourceFields.php +++ b/extensions/tags/src/Api/DiscussionResourceFields.php @@ -37,7 +37,7 @@ public function __invoke(): array Schema\Relationship\ToMany::make('tags') ->includable() ->writable() - ->required(fn (Discussion $discussion, Context $context) => ! $context->getActor()->can('bypassTagCounts', $discussion)) + ->required(fn (Context $context, Discussion $discussion) => ! $context->getActor()->can('bypassTagCounts', $discussion)) ->set(function (Discussion $discussion, array $newTags, Context $context) { $actor = $context->getActor();