providers[] = $provider; } public function getByPriority(): array { usort($this->providers, static fn (ProviderInterface $a, ProviderInterface $b): int => ProviderPriority::compare($a->getPriority(), $b->getPriority()) ); return $this->providers; } }