Skip to content

Commit 699e894

Browse files
authored
Merge pull request #96 from niconoe-/patch-1
Remove Deprecated for PHP 8.1
2 parents 2fed5bd + b184687 commit 699e894

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Errors/ErrorContainer.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ public function current(): ?ValidationError
115115
/**
116116
* @inheritDoc
117117
*/
118+
#[\ReturnTypeWillChange]
118119
public function next(): ?ValidationError
119120
{
120121
return next($this->errors) ?: null;
@@ -139,8 +140,9 @@ public function valid(): bool
139140
/**
140141
* @inheritDoc
141142
*/
143+
#[\ReturnTypeWillChange]
142144
public function rewind(): ?ValidationError
143145
{
144146
return reset($this->errors) ?: null;
145147
}
146-
}
148+
}

0 commit comments

Comments
 (0)