We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df2aa2d commit 56c95d1Copy full SHA for 56c95d1
1 file changed
bundle/API/Repository/TagsService.php
@@ -297,8 +297,17 @@ public function newTagUpdateStruct(): TagUpdateStruct;
297
* static fn (TagsService $tagsService): Tag => $tagsService->loadTag($tagId),
298
* );
299
*
300
+ * @template T
301
+ *
302
+ * @param \Netgen\TagsBundle\API\Repository\TagsService|null $outerTagsService optional, mostly
303
+ * for internal use but allows to specify TagsService to pass to closure
304
305
+ * @phpstan-param callable(\Netgen\TagsBundle\API\Repository\TagsService): T $callback
306
307
* @throws \RuntimeException Thrown on recursive sudo() use
308
* @throws \Exception Re throws exceptions thrown inside $callback
309
310
+ * @return T
311
*/
312
public function sudo(callable $callback, ?self $outerTagsService = null): mixed;
313
}
0 commit comments