fix: deprecated Settings should be compatible with \Countable

This commit is contained in:
norb 2024-11-11 16:33:27 +01:00
commit 415b8f1a8e

View file

@ -319,9 +319,9 @@ class Settings implements \Iterator, \Countable
* Count elements * Count elements
* @link https://www.php.net/countable.count.php * @link https://www.php.net/countable.count.php
*/ */
public function count() public function count(): int
{ {
count($this->settings); return count($this->settings);
} }
// }}} // }}}