Files
Javier Eguiluz b37d5cb932 minor #21620 [Validator] Consistently use Assert\... when referring to assertions (mpdude)
This PR was merged into the 7.3 branch.

Discussion
----------

[Validator] Consistently use `Assert\...` when referring to assertions

I noticed a slight inconsistency in the docs when showing examples of using `Constraint` classes. In some examples, the class is `use`d and shown with the short class name. In other cases, the `Symfony\Component\Validator\Constraints` namespace is used as `Assert`, and references being made as `Assert\NotBlank` and similar.

Personally, I like the `Assert\` prefix, since it triggers the "ah, that's a constraint" wiring in my head, but I don't mind. Generally, I'd prefer consistency, since I noticed that this caused confusion in my team.

Additionally, this PR fixes a few places where we are still showing the use of array-based options instead of named arguments, a change that was made in 7.3.

Commits
-------

4b4161faa Consistently use `Assert\...` when referring to assertions
2026-01-16 08:56:54 +01:00
..
2024-10-10 10:44:22 +02:00
2025-11-21 12:55:28 +01:00
2026-01-08 16:44:18 +01:00