Commit b836fd3
authored
Ensure partial usage of Symfony validator assertions and Doctrine ORM attributes (see #21)
Description
-----------
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:
```php
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
#[ORM\Column(type: 'string')]
#[Assert\NotNull]
#[Assert\NotBlank]
private string $myProperty = '';
```
Commits
-------
a2f8efa Ensure partial usage of Symfony validator assertions and Doctrine ORM…1 parent 6e589ae commit b836fd3
2 files changed
Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | | - | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
190 | 201 | | |
191 | 202 | | |
192 | 203 | | |
| |||
0 commit comments