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
2025-10-27 08:10:15 +01:00
2025-12-30 23:11:38 +01:00
2026-01-09 16:59:58 +01:00
2026-01-09 17:21:54 +01:00
2026-01-14 16:20:16 +01:00
2026-01-08 16:44:18 +01:00
2025-05-29 16:29:02 +02:00
2026-01-09 17:21:54 +01:00
2026-01-05 16:46:40 +01:00
2025-10-20 13:43:39 +02:00
2026-01-16 08:52:48 +01:00
2024-04-15 08:07:40 +02:00
2026-01-09 17:21:54 +01:00
2026-01-09 17:21:54 +01:00
2025-11-12 16:06:33 +01:00
2026-01-09 16:50:06 +01:00
2026-01-09 17:21:54 +01:00
2026-01-05 16:59:15 +01:00
2025-12-30 23:16:38 +01:00
2026-01-09 17:21:54 +01:00
2026-01-09 16:50:06 +01:00
2026-01-08 16:44:18 +01:00
2026-01-08 16:44:18 +01:00
2026-01-09 08:41:38 +01:00
2026-01-09 17:21:54 +01:00
2025-11-29 22:32:57 +01:00
2025-02-06 08:45:01 +01:00
2025-10-21 08:54:27 +02:00
2025-11-25 08:12:16 +01:00
2026-01-09 17:21:54 +01:00
2022-12-08 14:41:37 +01:00
2026-01-08 13:30:30 +01:00
2025-10-07 08:18:32 +02:00
2026-01-09 17:21:54 +01:00
2026-01-09 17:21:54 +01:00
2026-01-09 16:59:58 +01:00
2025-03-10 08:29:15 +01:00
2026-01-13 10:59:02 +01:00
2026-01-09 17:21:54 +01:00
2026-01-09 17:21:54 +01:00
2026-01-08 16:44:18 +01:00
2026-01-08 16:44:18 +01:00
2025-08-11 08:27:20 +02:00
2026-01-09 17:21:54 +01:00
2026-01-08 16:44:18 +01:00
2025-12-10 15:42:23 +01:00
2025-10-17 13:06:36 +02:00
2025-07-30 15:14:49 +02:00
2026-01-08 16:44:18 +01:00
2026-01-08 16:44:18 +01:00
2026-01-09 17:21:54 +01:00
2025-08-14 15:37:57 +02:00
2025-07-10 09:30:09 +02:00
2025-06-22 22:57:59 +02:00
2025-12-08 21:02:42 +01:00

Symfony Logo

The official Symfony Documentation

Online version | Components | Screencasts

Contributing

We love contributors! For more information on how you can contribute, please read the Symfony Docs Contributing Guide.

Important

Use 6.4 branch as the base of your pull requests, unless you are documenting a feature that was introduced after Symfony 6.4 (e.g. in Symfony 7.2).

Build Documentation Locally

This is not needed for contributing, but it's useful if you would like to debug some issue in the docs or if you want to read Symfony Documentation offline.

$ git clone git@github.com:symfony/symfony-docs.git

$ cd symfony-docs/
$ cd _build/

$ composer install

$ php build.php

After generating docs, serve them with the internal PHP server:

$ php -S localhost:8000 -t output/

Browse http://localhost:8000 to read the docs.

Description
⚠️ ARCHIVED: Original GitHub repository no longer exists. Preserved as backup on 2026-01-22T16:41:19.167Z
Readme 152 MiB
Languages
PHP 78%
HTML 11%
C++ 9%
NASL 1.1%
Shell 0.9%