1
0
mirror of https://github.com/flarum/core.git synced 2025-07-26 11:10:41 +02:00

fixed the BasicFoo vs FooBasic serializer definition issue, prevented for future using ::class

This commit is contained in:
Daniel Klabbers
2017-12-15 08:29:07 +01:00
parent 7be01119f5
commit 654fca9c2c
8 changed files with 20 additions and 19 deletions

View File

@@ -47,6 +47,6 @@ class BasicUserSerializer extends AbstractSerializer
*/
protected function groups($user)
{
return $this->hasMany($user, 'Flarum\Api\Serializer\GroupSerializer');
return $this->hasMany($user, GroupSerializer::class);
}
}