N°5122 - Minor libs update according to new PHP min version

This commit is contained in:
Molkobain
2022-08-23 11:26:47 +02:00
parent 7b60c9c71a
commit bbb5b86864
15 changed files with 182 additions and 240 deletions

View File

@@ -276,9 +276,7 @@ class PriorityList implements Iterator, Countable
}
return array_map(
function ($item) use ($flag) {
return $flag === PriorityList::EXTR_PRIORITY ? $item['priority'] : $item['data'];
},
static fn($item) => $flag === self::EXTR_PRIORITY ? $item['priority'] : $item['data'],
$this->items
);
}