From 75160b12821f7f4299cce7f0b69c83c1502ae071 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Mon, 27 May 2024 13:08:29 +0200 Subject: 2024-02-19 upstream --- vendor/stripe/stripe-php/lib/Util/Set.php | 92 ++++++++++++++++--------------- 1 file changed, 48 insertions(+), 44 deletions(-) (limited to 'vendor/stripe/stripe-php/lib/Util/Set.php') diff --git a/vendor/stripe/stripe-php/lib/Util/Set.php b/vendor/stripe/stripe-php/lib/Util/Set.php index 017f929..57caab1 100644 --- a/vendor/stripe/stripe-php/lib/Util/Set.php +++ b/vendor/stripe/stripe-php/lib/Util/Set.php @@ -1,44 +1,48 @@ -_elts = []; - foreach ($members as $item) { - $this->_elts[$item] = true; - } - } - - public function includes($elt) - { - return isset($this->_elts[$elt]); - } - - public function add($elt) - { - $this->_elts[$elt] = true; - } - - public function discard($elt) - { - unset($this->_elts[$elt]); - } - - public function toArray() - { - return \array_keys($this->_elts); - } - - public function getIterator() - { - return new ArrayIterator($this->toArray()); - } -} +_elts = []; + foreach ($members as $item) { + $this->_elts[$item] = true; + } + } + + public function includes($elt) + { + return isset($this->_elts[$elt]); + } + + public function add($elt) + { + $this->_elts[$elt] = true; + } + + public function discard($elt) + { + unset($this->_elts[$elt]); + } + + public function toArray() + { + return \array_keys($this->_elts); + } + + /** + * @return ArrayIterator + */ + #[\ReturnTypeWillChange] + public function getIterator() + { + return new ArrayIterator($this->toArray()); + } +} -- cgit v1.2.3