Skip to content

Ensure partial usage of Symfony validator assertions and Doctrine ORM attributes - #21

Merged
leofeyer merged 1 commit into
contao:mainfrom
Toflar:feature/partial-namespace
Jul 2, 2026
Merged

Ensure partial usage of Symfony validator assertions and Doctrine ORM attributes#21
leofeyer merged 1 commit into
contao:mainfrom
Toflar:feature/partial-namespace

Conversation

@Toflar

@Toflar Toflar commented Jun 29, 2026

Copy link
Copy Markdown
Member

With my feature contributed in slevomat/coding-standard#1856 we can now make sure that some partial namespaces are not only allowed but enforced to be used the way we want them to 😎

This config now ensures this usage:

use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;

#[ORM\Column(type: 'string')]
#[Assert\NotNull]
#[Assert\NotBlank]
private string $myProperty = '';

@leofeyer
leofeyer merged commit b836fd3 into contao:main Jul 2, 2026
4 checks passed
@leofeyer

leofeyer commented Jul 2, 2026

Copy link
Copy Markdown
Member

Thank you @Toflar.

@Toflar
Toflar deleted the feature/partial-namespace branch July 2, 2026 11:51
@Toflar

Toflar commented Jul 2, 2026

Copy link
Copy Markdown
Member Author

Thanks, please tag the release 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants