Skip to content

Commit

Permalink
Add comment to avoid confusion
Browse files Browse the repository at this point in the history
  • Loading branch information
pH-7 committed Jul 14, 2023
1 parent 4043c89 commit 100bdf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Route/food-item.routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ enum FoodItemAction: string
public function getResponse(): string
{
$postBody = file_get_contents('php://input');
$postBody = json_decode($postBody);
$postBody = json_decode($postBody); // unused for now

// Ternary conditional operator operator
$itemId = $_REQUEST['id'] ?? ''; // using the null coalescing operator
Expand Down

0 comments on commit 100bdf9

Please sign in to comment.