Commit b184687
authored
Remove Deprecated for PHP 8.1
Add PHP Attribute `ReturnTypeWillChange` on ErrorContainer::next and ErrorContainer::rewind to temporarily suppress the deprecation notices:
- `Deprecated: Return type of Opis\JsonSchema\Errors\ErrorContainer::next(): ?Opis\JsonSchema\Errors\ValidationError should either be compatible with Iterator::next(): void`
- `Deprecated: Return type of Opis\JsonSchema\Errors\ErrorContainer::rewind(): ?Opis\JsonSchema\Errors\ValidationError should either be compatible with Iterator::rewind(): void`.1 parent 1cec9a5 commit b184687
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| 118 | + | |
118 | 119 | | |
119 | 120 | | |
120 | 121 | | |
| |||
139 | 140 | | |
140 | 141 | | |
141 | 142 | | |
| 143 | + | |
142 | 144 | | |
143 | 145 | | |
144 | 146 | | |
145 | 147 | | |
146 | | - | |
| 148 | + | |
0 commit comments