Skip to content

Commit 872986e

Browse files
authored
Athib/fix deprecated warning (#106)
* add return types to be compatible with interfaces Signed-off-by: Arnaud Thibaudet <[email protected]> * add return types to be compatible with interfaces Signed-off-by: Arnaud Thibaudet <[email protected]> --------- Signed-off-by: Arnaud Thibaudet <[email protected]>
1 parent dac4f0e commit 872986e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sdk/Model/Violations.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ class Violations implements \Countable, \IteratorAggregate
2222
*/
2323
private $violations = [];
2424

25-
public function count()
25+
public function count(): int
2626
{
2727
return \count($this->violations);
2828
}
2929

30-
public function getIterator()
30+
public function getIterator(): \Traversable
3131
{
3232
return new \ArrayIterator($this->violations);
3333
}

0 commit comments

Comments
 (0)