From 872986e1a0328c977cf7d29b18a813fa88979f39 Mon Sep 17 00:00:00 2001 From: Arnaud Thibaudet Date: Mon, 24 Jun 2024 16:26:31 +0200 Subject: [PATCH] Athib/fix deprecated warning (#106) * add return types to be compatible with interfaces Signed-off-by: Arnaud Thibaudet * add return types to be compatible with interfaces Signed-off-by: Arnaud Thibaudet --------- Signed-off-by: Arnaud Thibaudet --- Sdk/Model/Violations.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sdk/Model/Violations.php b/Sdk/Model/Violations.php index 7c38f1c..f9742e7 100644 --- a/Sdk/Model/Violations.php +++ b/Sdk/Model/Violations.php @@ -22,12 +22,12 @@ class Violations implements \Countable, \IteratorAggregate */ private $violations = []; - public function count() + public function count(): int { return \count($this->violations); } - public function getIterator() + public function getIterator(): \Traversable { return new \ArrayIterator($this->violations); }