Add ReturnTypeWillChange attribute to silence PHP 8.1 deprecations
This commit is contained in:
parent
36983e12ff
commit
a30da130e3
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user