Skip to content

[Validator] add missing changelog/upgrade entries #59606

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 24, 2025
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