Skip to content

Commit

Permalink
Add Upgrade note
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed May 25, 2022
1 parent e21062d commit 43f2b51
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions UPGRADE-1.x.md
@@ -1,6 +1,22 @@
UPGRADE 1.x
===========

UPGRADE FROM 1.16 to 1.17
=========================

## Sonata\Form\Validator\ErrorElement

Deprecate passing an array as first parameter of `addViolation`
```php
$errorElement->addViolation(['Foo error message', ['bar_param' => 'bar_param_lvalue'], 'BAR']);
```

You MUST call
```php
$errorElement->addViolation('Foo error message', ['bar_param' => 'bar_param_lvalue'], 'BAR');
```
instead.

UPGRADE FROM 1.6 to 1.7
=======================

Expand Down

0 comments on commit 43f2b51

Please sign in to comment.