Merge pull request #896 from mbabker/patch-2

Add ReturnTypeWillChange attribute to silence PHP 8.1 deprecations
This commit is contained in:
Chris Boden 2021-12-12 11:38:34 -05:00 committed by GitHub
commit 547c117e6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();
}