Skip to content
This repository has been archived by the owner on Mar 13, 2022. It is now read-only.

Commit

Permalink
fix phpstan issue on user delete()
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthodev committed Mar 6, 2021
1 parent e1ad5be commit 522ee4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/Controller/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ public function delete(
User $user,
Request $request
): JsonResponse {
if (!$user) {
if ($user !== null) {
new JsonResponse('User not found', 404);
}

Expand Down

0 comments on commit 522ee4f

Please sign in to comment.