protected function sortUpdatesByVersion(UpdateInfo ...$updates) : array { \uasort($updates, function (UpdateInfo $a, UpdateInfo $b) : int { return (int) ($a->getVersionExpanded() <=> $b->getVersionExpanded()); }); return $updates; }