Skip to content

Commit 30227e2

Browse files
authored
Update UPGRADE-6.0.md
Add missing breaking change to upgrade guide
1 parent 0f69f0e commit 30227e2

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

UPGRADE-6.0.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,20 @@ Thank you for your support and contributions to the project.
2424
foreach ($validator->getErrors() as $error) {
2525
echo $error['constraint']['name']; // required
2626
}
27-
```
27+
```
28+
29+
## BaseConstraint::addError signature changed
30+
31+
* The signature for the `BaseContraint::AddError` method has changed.
32+
33+
34+
*Before*
35+
```php
36+
public function addError(?JsonPointer $path, $message, $constraint = '', ?array $more = null)
37+
```
38+
39+
*After*
40+
```php
41+
public function addError(ConstraintError $constraint, ?JsonPointer $path = null, array $more = []): void
42+
```
43+

0 commit comments

Comments
 (0)