more php 8.x compatibility

This commit is contained in:
slawkens
2023-02-18 21:22:54 +01:00
parent 3280b3b9df
commit 2ac8ed7411
2 changed files with 10 additions and 4 deletions

View File

@@ -308,7 +308,7 @@ class OTS_SpellsList implements IteratorAggregate, Countable
* @since 0.1.5
* @return AppendIterator Iterator for all spells.
*/
public function getIterator()
public function getIterator(): Traversable
{
$iterator = new AppendIterator();
$iterator->append( new ArrayIterator($this->runes) );