[Maintenance] Add UPGRADE-2.3 notes for doctrine-bundle 3 and DBAL 4

This commit is contained in:
Grzegorz Sadowski 2026-06-17 12:01:42 +02:00
parent 5897846cbd
commit 3e3409d423
No known key found for this signature in database
GPG key ID: EF87FF4E6E3BD364

View file

@ -110,13 +110,13 @@
## Validation
1. Passing an array of options to configure a Sylius validation constraint is **deprecated** since Sylius 2.3
1. Passing an array of options to configure a Sylius validation constraint is **deprecated** since Sylius 2.3
and will be removed in Sylius 3.0. Use named arguments instead.
All Sylius validation constraints now declare explicit constructors with named arguments
All Sylius validation constraints now declare explicit constructors with named arguments
(marked with `#[HasNamedArguments]`). The legacy array syntax keeps working, it only triggers deprecation.
Configuring constraints via **XML / YAML / PHP attributes is not affected** and requires no changes; the validator
Configuring constraints via **XML / YAML / PHP attributes is not affected** and requires no changes; the validator
loaders pass the options as named arguments automatically. Only **direct instantiation in PHP** should be migrated:
```diff