mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-11 16:41:59 -06:00
Fix #4195
This commit is contained in:
parent
ef42d89d55
commit
fc4f35d6ba
@ -34,7 +34,7 @@ use Log;
|
||||
class UserTransformer extends AbstractTransformer
|
||||
{
|
||||
/** @var UserRepositoryInterface */
|
||||
private $repository;
|
||||
private UserRepositoryInterface $repository;
|
||||
|
||||
/**
|
||||
* Transform user.
|
||||
@ -45,6 +45,7 @@ class UserTransformer extends AbstractTransformer
|
||||
*/
|
||||
public function transform(User $user): array
|
||||
{
|
||||
$this->repository = $this->repository ?? app(UserRepositoryInterface::class);
|
||||
return [
|
||||
'id' => (int)$user->id,
|
||||
'created_at' => $user->created_at->toAtomString(),
|
||||
|
Loading…
Reference in New Issue
Block a user