Skip to content

Commit 58e1f2d

Browse files
Fix some PHP deprecation errors
1 parent d827ccd commit 58e1f2d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Error/ValidationErrorList.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ public function add(ValidationErrorInterface $error)
1111
$this->errors[] = $error;
1212
}
1313

14-
public function count()
14+
public function count(): int
1515
{
1616
return count($this->errors);
1717
}
1818

19-
public function getIterator()
19+
public function getIterator(): \ArrayIterator
2020
{
2121
return new \ArrayIterator($this->errors);
2222
}

Exception/InvalidExpressionException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public function __construct($expression, \Exception $exception)
1212
$expression,
1313
$exception->getMessage()
1414
),
15-
null,
15+
0,
1616
$exception
1717
);
1818
}

Exception/InvalidExpressionSyntaxException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public function __construct($expression, SyntaxError $exception)
1414
$expression,
1515
$exception->getMessage()
1616
),
17-
null,
17+
0,
1818
$exception
1919
);
2020
}

0 commit comments

Comments
 (0)