Skip to content

Commit

Permalink
Fixed "Unsupported operand types: string + int"
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoninoM90 committed Apr 1, 2024
1 parent 74ad39c commit 0138519
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Application/Actions/User/ViewUserAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ protected function action(): Response
$userId = (int) $this->resolveArg('id');
$user = $this->userRepository->findUserOfId($userId);

$this->logger->info("User of id " + $userId + " was viewed.");
$this->logger->info("User of id " + (string) $userId + " was viewed.");

Check failure on line 19 in src/Application/Actions/User/ViewUserAction.php

View workflow job for this annotation

GitHub Actions / Tests PHP 8.1

Binary operation "+" between 'User of id ' and numeric-string results in an error.

return $this->respondWithData($user);
}
Expand Down

0 comments on commit 0138519

Please sign in to comment.