mirror of
https://github.com/flarum/core.git
synced 2025-08-02 14:37:49 +02:00
Use ::class instead of some hardcoded class names
This gives us better refactoring functionality in IDEs like PhpStorm, and also more quickly surfaces typos through errors about undefined classes. :)
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
|
||||
namespace Flarum\Api\Controller;
|
||||
|
||||
use Flarum\Api\Serializer\PostSerializer;
|
||||
use Flarum\Discussion\Command\ReadDiscussion;
|
||||
use Flarum\Post\Command\PostReply;
|
||||
use Flarum\Post\Floodgate;
|
||||
@@ -23,7 +24,7 @@ class CreatePostController extends AbstractCreateController
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public $serializer = 'Flarum\Api\Serializer\PostSerializer';
|
||||
public $serializer = PostSerializer::class;
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
|
Reference in New Issue
Block a user