fix: deprecated Settings should be compatible with \Countable
This commit is contained in:
parent
aaf4321f56
commit
415b8f1a8e
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||||
}
|
}
|
||||||
// }}}
|
// }}}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue