Fix compatibility with PHP 8.1

This commit is contained in:
slawkens
2023-02-02 11:15:17 +01:00
parent 036abf83e5
commit 1d1e927d56
7 changed files with 21 additions and 21 deletions

View File

@@ -31,7 +31,7 @@
* @property-read int $access Access level.
* @tutorial POT/Accounts.pkg
*/
class OTS_Account extends OTS_Row_DAO implements IteratorAggregate, Countable
class OTS_Account extends OTS_Row_DAO implements Countable
{
/**
* Account data.
@@ -1105,7 +1105,7 @@ class OTS_Account 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();
}