Revert "Fix compatibility with PHP 8.1"

This reverts commit 99338afacb.
This commit is contained in:
slawkens
2023-02-02 16:17:33 +01:00
parent 48f74b9c7a
commit d691148c84
8 changed files with 22 additions and 22 deletions

View File

@@ -25,7 +25,7 @@
* @property-read int $id Row ID.
* @property-read OTS_Players_List $playersList List of members with this rank.
*/
class OTS_GuildRank extends OTS_Row_DAO implements Countable
class OTS_GuildRank extends OTS_Row_DAO implements IteratorAggregate, Countable
{
/**
* Rank data.
@@ -410,7 +410,7 @@ class OTS_GuildRank extends OTS_Row_DAO implements Countable
* @throws PDOException On PDO operation error.
* @return int Count of players.
*/
public function count(): int
public function count()
{
return $this->getPlayersList()->count();
}