diff options
Diffstat (limited to 'vendor/ramsey/uuid/src/Provider/Node/FallbackNodeProvider.php')
-rw-r--r-- | vendor/ramsey/uuid/src/Provider/Node/FallbackNodeProvider.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/vendor/ramsey/uuid/src/Provider/Node/FallbackNodeProvider.php b/vendor/ramsey/uuid/src/Provider/Node/FallbackNodeProvider.php index d2eb20b70..fe890cc4d 100644 --- a/vendor/ramsey/uuid/src/Provider/Node/FallbackNodeProvider.php +++ b/vendor/ramsey/uuid/src/Provider/Node/FallbackNodeProvider.php @@ -25,17 +25,23 @@ use Ramsey\Uuid\Type\Hexadecimal; class FallbackNodeProvider implements NodeProviderInterface { /** + * @var iterable<NodeProviderInterface> + */ + private $nodeProviders; + + /** * @param iterable<NodeProviderInterface> $providers Array of node providers */ - public function __construct(private iterable $providers) + public function __construct(iterable $providers) { + $this->nodeProviders = $providers; } public function getNode(): Hexadecimal { $lastProviderException = null; - foreach ($this->providers as $provider) { + foreach ($this->nodeProviders as $provider) { try { return $provider->getNode(); } catch (NodeException $exception) { |