Add ReturnTypeWillChange attribute to silence PHP 8.1 deprecations

This commit is contained in:
Michael Babker 2021-07-25 16:26:20 -05:00 committed by GitHub
parent 36983e12ff
commit a30da130e3
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} * {@inheritdoc}
*/ */
#[\ReturnTypeWillChange]
public function getIterator() { public function getIterator() {
return $this->subscribers; return $this->subscribers;
} }
@ -93,6 +94,7 @@ class Topic implements \IteratorAggregate, \Countable {
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
#[\ReturnTypeWillChange]
public function count() { public function count() {
return $this->subscribers->count(); return $this->subscribers->count();
} }