mirror of
https://github.com/flarum/core.git
synced 2025-08-06 16:36:47 +02:00
chore: remove ExtenderInterface[] as a conditional option, only support callable or ::class invoke (#3904)
* chore: remove ExtenderInterface[] as a conditional option, only support callable or ::class invoke * Apply fixes from StyleCI * stan * review --------- Co-authored-by: StyleCI Bot <bot@styleci.io>
This commit is contained in:
@@ -27,7 +27,6 @@ use Flarum\Post\Event\Revised;
|
||||
use Flarum\Post\Filter\PostFilterer;
|
||||
use Flarum\Post\Post;
|
||||
use Flarum\Tags\Api\Serializer\TagSerializer;
|
||||
use Flarum\Tags\Tag;
|
||||
use Flarum\User\User;
|
||||
|
||||
return [
|
||||
@@ -126,7 +125,7 @@ return [
|
||||
|
||||
// Tag mentions
|
||||
(new Extend\Conditional())
|
||||
->whenExtensionEnabled('flarum-tags', [
|
||||
->whenExtensionEnabled('flarum-tags', fn () => [
|
||||
(new Extend\Formatter)
|
||||
->render(Formatter\FormatTagMentions::class)
|
||||
->unparse(Formatter\UnparseTagMentions::class),
|
||||
|
Reference in New Issue
Block a user