From 09528a38d067d3733789fe64dad54e042f542292 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Fri, 15 Jun 2018 19:18:47 +0930 Subject: [PATCH] Use imported class name --- framework/core/src/Api/Controller/ShowUserController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/framework/core/src/Api/Controller/ShowUserController.php b/framework/core/src/Api/Controller/ShowUserController.php index 310643c3b..673e8920f 100644 --- a/framework/core/src/Api/Controller/ShowUserController.php +++ b/framework/core/src/Api/Controller/ShowUserController.php @@ -11,6 +11,7 @@ namespace Flarum\Api\Controller; +use Flarum\Api\Serializer\CurrentUserSerializer; use Flarum\Api\Serializer\UserSerializer; use Flarum\User\UserRepository; use Psr\Http\Message\ServerRequestInterface; @@ -55,7 +56,7 @@ class ShowUserController extends AbstractShowController $actor = $request->getAttribute('actor'); if ($actor->id == $id) { - $this->serializer = 'Flarum\Api\Serializer\CurrentUserSerializer'; + $this->serializer = CurrentUserSerializer::class; } return $this->users->findOrFail($id, $actor);