@@ -181,7 +181,7 @@ public function getHelp(): string;
181181 * key is not found. However, if no keys are specified then an empty
182182 * traversable MUST be returned instead.
183183 */
184- public function getItemsByTag ($ tagName );
184+ public function getItemsByTag ($ tagName ): array ;
185185
186186 /**
187187 * Returns a traversable set of cache items by one of multiple tag names.
@@ -199,7 +199,7 @@ public function getItemsByTag($tagName);
199199 * key is not found. However, if no keys are specified then an empty
200200 * traversable MUST be returned instead.
201201 */
202- public function getItemsByTags (array $ tagNames );
202+ public function getItemsByTags (array $ tagNames ): array ;
203203
204204 /**
205205 * Returns a traversable set of cache items by all of multiple tag names.
@@ -217,7 +217,7 @@ public function getItemsByTags(array $tagNames);
217217 * key is not found. However, if no keys are specified then an empty
218218 * traversable MUST be returned instead.
219219 */
220- public function getItemsByTagsAll (array $ tagNames );
220+ public function getItemsByTagsAll (array $ tagNames ): array ;
221221
222222 /**
223223 * Returns A json string that represents an array of items by tags-based.
@@ -233,7 +233,7 @@ public function getItemsByTagsAll(array $tagNames);
233233 *
234234 * @return string
235235 */
236- public function getItemsByTagsAsJsonString (array $ tagNames , $ option = 0 , $ depth = 512 );
236+ public function getItemsByTagsAsJsonString (array $ tagNames , $ option = 0 , $ depth = 512 ): string ;
237237
238238 /**
239239 * Removes the item from the pool by tag.
@@ -248,7 +248,7 @@ public function getItemsByTagsAsJsonString(array $tagNames, $option = 0, $depth
248248 * @return bool
249249 * True if the item was successfully removed. False if there was an error.
250250 */
251- public function deleteItemsByTag ($ tagName );
251+ public function deleteItemsByTag ($ tagName ): bool ;
252252
253253 /**
254254 * Removes the item from the pool by one of multiple tag names.
@@ -263,7 +263,7 @@ public function deleteItemsByTag($tagName);
263263 * @return bool
264264 * True if the items were successfully removed. False if there was an error.
265265 */
266- public function deleteItemsByTags (array $ tagNames );
266+ public function deleteItemsByTags (array $ tagNames ): bool ;
267267
268268 /**
269269 * Removes the item from the pool by all of multiple tag names.
@@ -278,7 +278,7 @@ public function deleteItemsByTags(array $tagNames);
278278 * @return bool
279279 * True if the items were successfully removed. False if there was an error.
280280 */
281- public function deleteItemsByTagsAll (array $ tagNames );
281+ public function deleteItemsByTagsAll (array $ tagNames ): bool ;
282282
283283 /**
284284 * Increment the items from the pool by tag.
@@ -295,7 +295,7 @@ public function deleteItemsByTagsAll(array $tagNames);
295295 * @return bool
296296 * True if the item was successfully incremented. False if there was an error.
297297 */
298- public function incrementItemsByTag ($ tagName , $ step = 1 );
298+ public function incrementItemsByTag ($ tagName , $ step = 1 ): bool ;
299299
300300 /**
301301 * Increment the items from the pool by one of multiple tag names.
@@ -312,7 +312,7 @@ public function incrementItemsByTag($tagName, $step = 1);
312312 * @return bool
313313 * True if the items were successfully incremented. False if there was an error.
314314 */
315- public function incrementItemsByTags (array $ tagNames , $ step = 1 );
315+ public function incrementItemsByTags (array $ tagNames , $ step = 1 ): bool ;
316316
317317 /**
318318 * Increment the items from the pool by all of multiple tag names.
@@ -329,7 +329,7 @@ public function incrementItemsByTags(array $tagNames, $step = 1);
329329 * @return bool
330330 * True if the items were successfully incremented. False if there was an error.
331331 */
332- public function incrementItemsByTagsAll (array $ tagNames , $ step = 1 );
332+ public function incrementItemsByTagsAll (array $ tagNames , $ step = 1 ): bool ;
333333
334334 /**
335335 * Decrement the items from the pool by tag.
@@ -346,7 +346,7 @@ public function incrementItemsByTagsAll(array $tagNames, $step = 1);
346346 * @return bool
347347 * True if the item was successfully decremented. False if there was an error.
348348 */
349- public function decrementItemsByTag ($ tagName , $ step = 1 );
349+ public function decrementItemsByTag ($ tagName , $ step = 1 ): bool ;
350350
351351 /**
352352 * Decrement the items from the pool by one of multiple tag names.
@@ -363,7 +363,7 @@ public function decrementItemsByTag($tagName, $step = 1);
363363 * @return bool
364364 * True if the item was successfully decremented. False if there was an error.
365365 */
366- public function decrementItemsByTags (array $ tagNames , $ step = 1 );
366+ public function decrementItemsByTags (array $ tagNames , $ step = 1 ): bool ;
367367
368368 /**
369369 * Decrement the items from the pool by all of multiple tag names.
@@ -380,7 +380,7 @@ public function decrementItemsByTags(array $tagNames, $step = 1);
380380 * @return bool
381381 * True if the items were successfully decremented. False if there was an error.
382382 */
383- public function decrementItemsByTagsAll (array $ tagNames , $ step = 1 );
383+ public function decrementItemsByTagsAll (array $ tagNames , $ step = 1 ): bool ;
384384
385385 /**
386386 * Decrement the items from the pool by tag.
@@ -397,7 +397,7 @@ public function decrementItemsByTagsAll(array $tagNames, $step = 1);
397397 * @return bool
398398 * True if the item was successfully appended. False if there was an error.
399399 */
400- public function appendItemsByTag ($ tagName , $ data );
400+ public function appendItemsByTag ($ tagName , $ data ): bool ;
401401
402402 /**
403403 * Append the items from the pool by one of multiple tag names.
@@ -414,7 +414,7 @@ public function appendItemsByTag($tagName, $data);
414414 * @return bool
415415 * True if the items were successfully appended. False if there was an error.
416416 */
417- public function appendItemsByTags (array $ tagNames , $ data );
417+ public function appendItemsByTags (array $ tagNames , $ data ): bool ;
418418
419419 /**
420420 * Append the items from the pool by all of multiple tag names.
@@ -431,7 +431,7 @@ public function appendItemsByTags(array $tagNames, $data);
431431 * @return bool
432432 * True if the items were successfully appended. False if there was an error.
433433 */
434- public function appendItemsByTagsAll (array $ tagNames , $ data );
434+ public function appendItemsByTagsAll (array $ tagNames , $ data ): bool ;
435435
436436 /**
437437 * Prepend the items from the pool by tag.
@@ -448,7 +448,7 @@ public function appendItemsByTagsAll(array $tagNames, $data);
448448 * @return bool
449449 * True if the item was successfully prepended. False if there was an error.
450450 */
451- public function prependItemsByTag ($ tagName , $ data );
451+ public function prependItemsByTag ($ tagName , $ data ): bool ;
452452
453453 /**
454454 * Prepend the items from the pool by one of multiple tag names.
@@ -465,7 +465,7 @@ public function prependItemsByTag($tagName, $data);
465465 * @return bool
466466 * True if the item was successfully prepended. False if there was an error.
467467 */
468- public function prependItemsByTags (array $ tagNames , $ data );
468+ public function prependItemsByTags (array $ tagNames , $ data ): bool ;
469469
470470 /**
471471 * Prepend the items from the pool by all of multiple tag names.
@@ -482,7 +482,7 @@ public function prependItemsByTags(array $tagNames, $data);
482482 * @return bool
483483 * True if the items were successfully prepended. False if there was an error.
484484 */
485- public function prependItemsByTagsAll (array $ tagNames , $ data );
485+ public function prependItemsByTagsAll (array $ tagNames , $ data ): bool ;
486486
487487 /**
488488 * @param \Psr\Cache\CacheItemInterface $item
0 commit comments