Fix compatibility with PHP 8.1

This commit is contained in:
slawkens
2023-02-02 11:15:17 +01:00
parent 301c3b86e2
commit 99338afacb
8 changed files with 22 additions and 22 deletions

View File

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