Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions UPGRADE-7.3.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,29 @@ Serializer

* Deprecate the `CompiledClassMetadataFactory` and `CompiledClassMetadataCacheWarmer` classes

Validator
---------

* Deprecate passing an array of options to the constructors of the constraint classes, pass each option as a dedicated argument instead

Before:

```php
new NotNull([
'groups' => ['foo', 'bar'],
'message' => 'a custom constraint violation message',
])
```

After:

```php
new NotNull(
groups: ['foo', 'bar'],
message: 'a custom constraint violation message',
)
```

VarDumper
---------

Expand Down
19 changes: 19 additions & 0 deletions src/Symfony/Component/Validator/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,25 @@ CHANGELOG
7.3
---

* Deprecate passing an array of options to the constructors of the constraint classes, pass each option as a dedicated argument instead

Before:

```php
new NotNull([
'groups' => ['foo', 'bar'],
'message' => 'a custom constraint violation message',
])
```

After:

```php
new NotNull(
groups: ['foo', 'bar'],
message: 'a custom constraint violation message',
)
```
* Add support for ratio checks for SVG files to the `Image` constraint
* Add the `Slug` constraint

Expand Down
Loading