From 415b8f1a8ecc0a97d9b2c4713e2d2f6a3e1492d3 Mon Sep 17 00:00:00 2001 From: norb Date: Mon, 11 Nov 2024 16:33:27 +0100 Subject: [PATCH] fix: deprecated Settings should be compatible with \Countable --- src/Settings.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Settings.php b/src/Settings.php index 0f30031..56e1b0f 100644 --- a/src/Settings.php +++ b/src/Settings.php @@ -319,9 +319,9 @@ class Settings implements \Iterator, \Countable * Count elements * @link https://www.php.net/countable.count.php */ - public function count() + public function count(): int { - count($this->settings); + return count($this->settings); } // }}}