From 100bdf990805b406241e36d0744e5d85287eb3d4 Mon Sep 17 00:00:00 2001 From: Pierre-Henry Soria Date: Fri, 14 Jul 2023 19:46:37 +1000 Subject: [PATCH] Add comment to avoid confusion --- src/Route/food-item.routes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Route/food-item.routes.php b/src/Route/food-item.routes.php index f695fde..5be4d5a 100644 --- a/src/Route/food-item.routes.php +++ b/src/Route/food-item.routes.php @@ -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