@@ -42,7 +42,7 @@ public function __construct(AdapterInterface $itemsPool, AdapterInterface $tagsP
4242$ this ->tags =$ tagsPool ?:$ itemsPool ;
4343$ this ->knownTagVersionsTtl =$ knownTagVersionsTtl ;
4444$ this ->createCacheItem = \Closure::bind (
45- function ($ key ,$ value ,CacheItem $ protoItem ) {
45+ static function ($ key ,$ value ,CacheItem $ protoItem ) {
4646$ item =new CacheItem ();
4747$ item ->key =$ key ;
4848$ item ->value =$ value ;
@@ -56,7 +56,7 @@ function ($key, $value, CacheItem $protoItem) {
5656 CacheItem::class
5757 );
5858$ this ->setCacheItemTags = \Closure::bind (
59- function (CacheItem $ item ,$ key ,array &$ itemTags ) {
59+ static function (CacheItem $ item ,$ key ,array &$ itemTags ) {
6060if (!$ item ->isHit ) {
6161return $ item ;
6262 }
@@ -76,7 +76,7 @@ function (CacheItem $item, $key, array &$itemTags) {
7676 CacheItem::class
7777 );
7878$ this ->getTagsByKey = \Closure::bind (
79- function ($ deferred ) {
79+ static function ($ deferred ) {
8080$ tagsByKey = [];
8181foreach ($ deferredas $ key =>$ item ) {
8282$ tagsByKey [$ key ] =$ item ->tags ;
@@ -88,7 +88,7 @@ function ($deferred) {
8888 CacheItem::class
8989 );
9090$ this ->invalidateTags = \Closure::bind (
91- function (AdapterInterface $ tagsAdapter ,array $ tags ) {
91+ static function (AdapterInterface $ tagsAdapter ,array $ tags ) {
9292foreach ($ tagsas $ v ) {
9393$ v ->defaultLifetime =0 ;
9494$ v ->expiry =null ;