Skip to content

Commit 2ecaa59

Browse files
Julien Paulinicolas-grekas
authored andcommitted
[Cache] fix warning on PHP 7.4
1 parent b050cca commit 2ecaa59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ParserCache/ParserCacheAdapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function __construct(ParserCacheInterface $pool)
3030
$this->pool = $pool;
3131

3232
$this->createCacheItem = \Closure::bind(
33-
function ($key, $value, $isHit) {
33+
static function ($key, $value, $isHit) {
3434
$item = new CacheItem();
3535
$item->key = $key;
3636
$item->value = $value;

0 commit comments

Comments
 (0)