mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 10:47:00 +00:00 
			
		
		
		
	Fix #4195
This commit is contained in:
		| @@ -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(), | ||||
|   | ||||
		Reference in New Issue
	
	Block a user