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

@@ -290,14 +290,10 @@ class PriorityQueue implements Countable, IteratorAggregate, Serializable
case self::EXTR_BOTH:
return $this->items;
case self::EXTR_PRIORITY:
return array_map(function ($item) {
return $item['priority'];
}, $this->items);
return array_map(static fn($item) => $item['priority'], $this->items);
case self::EXTR_DATA:
default:
return array_map(function ($item) {
return $item['data'];
}, $this->items);
return array_map(static fn($item) => $item['data'], $this->items);
}
}