@@ -157,7 +157,7 @@ public function deleteItemsByTags(array $tagNames, int $strategy = TaggableCache
157157
158158 foreach ($ this ->getItemsByTags ($ tagNames , $ strategy ) as $ item ) {
159159 $ result = $ this ->deleteItem ($ item ->getKey ());
160- if ($ return !== true ) {
160+ if ($ result !== true ) {
161161 $ return = $ result ;
162162 }
163163 }
@@ -179,7 +179,7 @@ public function deleteItemsByTag(string $tagName, int $strategy = TaggableCacheI
179179 $ return = true ;
180180 foreach ($ this ->getItemsByTag ($ tagName , $ strategy ) as $ item ) {
181181 $ result = $ this ->deleteItem ($ item ->getKey ());
182- if ($ return !== true ) {
182+ if ($ result !== true ) {
183183 $ return = $ result ;
184184 }
185185 }
@@ -225,7 +225,7 @@ public function incrementItemsByTags(array $tagNames, int $step = 1, int $strate
225225 $ return = true ;
226226 foreach ($ tagNames as $ tagName ) {
227227 $ result = $ this ->incrementItemsByTag ($ tagName , $ step , $ strategy );
228- if ($ return !== true ) {
228+ if ($ result !== true ) {
229229 $ return = $ result ;
230230 }
231231 }
@@ -270,7 +270,7 @@ public function decrementItemsByTags(array $tagNames, int $step = 1, int $strate
270270 $ return = true ;
271271 foreach ($ tagNames as $ tagName ) {
272272 $ result = $ this ->decrementItemsByTag ($ tagName , $ step , $ strategy );
273- if ($ return !== true ) {
273+ if ($ result !== true ) {
274274 $ return = $ result ;
275275 }
276276 }
@@ -315,7 +315,7 @@ public function appendItemsByTags(array $tagNames, array|string $data, int $stra
315315 $ return = true ;
316316 foreach ($ tagNames as $ tagName ) {
317317 $ result = $ this ->appendItemsByTag ($ tagName , $ data , $ strategy );
318- if ($ return !== true ) {
318+ if ($ result !== true ) {
319319 $ return = $ result ;
320320 }
321321 }
@@ -360,7 +360,7 @@ public function prependItemsByTags(array $tagNames, array|string $data, int $str
360360 $ return = true ;
361361 foreach ($ tagNames as $ tagName ) {
362362 $ result = $ this ->prependItemsByTag ($ tagName , $ data , $ strategy );
363- if ($ return !== true ) {
363+ if ($ result !== true ) {
364364 $ return = $ result ;
365365 }
366366 }
0 commit comments