Skip to content

Commit

Permalink
Athib/fix deprecated warning (#106)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
athib committed Jun 24, 2024
1 parent dac4f0e commit 872986e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sdk/Model/Violations.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 872986e

Please sign in to comment.