From b2ebb949c2c1e96801bd55e479f094086ca9948c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Ca=C5=82ka?= Date: Mon, 1 May 2023 11:02:49 +0200 Subject: [PATCH] fix: Ternary operator condition is always true --- src/Middleware/LSTagsMiddleware.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Middleware/LSTagsMiddleware.php b/src/Middleware/LSTagsMiddleware.php index f1636b1..f03c6ae 100644 --- a/src/Middleware/LSTagsMiddleware.php +++ b/src/Middleware/LSTagsMiddleware.php @@ -29,7 +29,7 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface if (! empty($params) && ! empty($params['id'])) { // The id parameter contains the slug. We only need the id (int) $id = explode('-', $params['id'], 2)[0]; - $lsTagsString .= ",$rootRouteName".$id ?: $params['id']; + $lsTagsString .= ",$rootRouteName".$id; } return $response->withHeader(LSCacheHeadersEnum::TAG, $lsTagsString);