From a30da130e36a9465c7757d2342ce3e28481788d9 Mon Sep 17 00:00:00 2001 From: Michael Babker Date: Sun, 25 Jul 2021 16:26:20 -0500 Subject: [PATCH] Add ReturnTypeWillChange attribute to silence PHP 8.1 deprecations --- src/Ratchet/Wamp/Topic.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Ratchet/Wamp/Topic.php b/src/Ratchet/Wamp/Topic.php index bca8f67..675b236 100644 --- a/src/Ratchet/Wamp/Topic.php +++ b/src/Ratchet/Wamp/Topic.php @@ -86,6 +86,7 @@ class Topic implements \IteratorAggregate, \Countable { /** * {@inheritdoc} */ + #[\ReturnTypeWillChange] public function getIterator() { return $this->subscribers; } @@ -93,6 +94,7 @@ class Topic implements \IteratorAggregate, \Countable { /** * {@inheritdoc} */ + #[\ReturnTypeWillChange] public function count() { return $this->subscribers->count(); }