8000 Merge branch '3.4' into 4.1 · symfony/symfony-docs@c83c2e7 · GitHub
[go: up one dir, main page]

Skip to content

Commit c83c2e7

Browse files
committed
Merge branch '3.4' into 4.1
* 3.4: Removed useless parentheses in Assert 10000 annotations
2 parents 547069c + 0950d8d commit c83c2e7

File tree

21 files changed

+27
-27
lines changed

21 files changed

+27
-27
lines changed

best_practices/forms.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ blank, add the following in the ``Post`` object::
161161
class Post
162162
{
163163
/**
164-
* @Assert\NotBlank()
164+
* @Assert\NotBlank
165165
*/
166166
public $title;
167167
}

components/validator/resources.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ prefixed classes included in doc block comments (``/** ... */``). For example::
100100
class User
101101
{
102102
/**
103-
* @Assert\NotBlank()
103+
* @Assert\NotBlank
104104
*/
105105
protected $name;
106106
}

doctrine/registration_form.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,19 +64,19 @@ With some validation added, your class may look something like this::
6464

6565
/**
6666
* @ORM\Column(type="string", length=255, unique=true)
67-
* @Assert\NotBlank()
68-
* @Assert\Email()
67+
* @Assert\NotBlank
68+
* @Assert\Email
6969
*/
7070
private $email;
7171

7272
/**
7373
* @ORM\Column(type="string", length=255, unique=true)
74-
* @Assert\NotBlank()
74+
* @Assert\NotBlank
7575
*/
7676
private $username;
7777

7878
/**
79-
* @Assert\NotBlank()
79+
* @Assert\NotBlank
8080
* @Assert\Length(max=4096)
8181
*/
8282
private $plainPassword;

form/embedded.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ creating the ``Category`` object::
2525
class Category
2626
{
2727
/**
28-
* @Assert\NotBlank()
28+
* @Assert\NotBlank
2929
*/
3030
public $name;
3131
}
@@ -40,7 +40,7 @@ Next, add a new ``category`` property to the ``Task`` class::
4040

4141
/**
4242
* @Assert\Type(type="App\Entity\Category")
43-
* @Assert\Valid()
43+
* @Assert\Valid
4444
*/
4545
protected $category;
4646

forms.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,12 +336,12 @@ object.
336336
class Task
337337
{
338338
/**
339-
* @Assert\NotBlank()
339+
* @Assert\NotBlank
340340
*/
341341
public $task;
342342
343343
/**
344-
* @Assert\NotBlank()
344+
* @Assert\NotBlank
345345
* @Assert\Type("\DateTime")
346346
*/
347347
protected $dueDate;

reference/constraints/Bic.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ will contain a Business Identifier Code (BIC).
3434
class Transaction
3535
{
3636
/**
37-
* @Assert\Bic()
37+
* @Assert\Bic
3838
*/
3939
protected $businessIdentifierCode;
4040
}

reference/constraints/Blank.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ of an ``Author`` class were blank, you could do the following:
4242
class Author
4343
{
4444
/**
45-
* @Assert\Blank()
45+
* @Assert\Blank
4646
*/
4747
protected $firstName;
4848
}

reference/constraints/Collection.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ following:
6969
* fields = {
7070
* "personal_email" = @Assert\Email,
7171
* "short_bio" = {
72-
* @Assert\NotBlank(),
72+
* @Assert\NotBlank,
7373
* @Assert\Length(
7474
* max = 100,
7575
* maxMessage = "Your short bio is too long!"

reference/constraints/Country.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Basic Usage
2929
class User
3030
{
3131
/**
32-
* @Assert\Country()
32+
* @Assert\Country
3333
*/
3434
protected $country;
3535
}

reference/constraints/Date.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Basic Usage
3131
class Author
3232
{
3333
/**
34-
* @Assert\Date()
34+
* @Assert\Date
3535
*/
3636
protected $birthday;
3737 10000
}

reference/constraints/DateTime.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Basic Usage
3232
class Author
3333
{
3434
/**
35-
* @Assert\DateTime()
35+
* @Assert\DateTime
3636
*/
3737
protected $createdAt;
3838
}

reference/constraints/IsNull.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ of an ``Author`` class exactly equal to ``null``, you could do the following:
3636
class Author
3737
{
3838
/**
39-
* @Assert\IsNull()
39+
* @Assert\IsNull
4040
*/
4141
protected $firstName;
4242
}

reference/constraints/Language.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Basic Usage
3030
class User
3131
{
3232
/**
33-
* @Assert\Language()
33+
* @Assert\Language
3434
*/
3535
protected $preferredLanguage;
3636
}

reference/constraints/NotBlank.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class were not blank, you could do the following:
4040
class Author
4141
{
4242
/**
43-
* @Assert\NotBlank()
43+
* @Assert\NotBlank
4444
*/
4545
protected $firstName;
4646
}

reference/constraints/NotNull.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class were not strictly equal to ``null``, you would:
3434
class Author
3535
{
3636
/**
37-
* @Assert\NotNull()
37+
* @Assert\NotNull
3838
*/
3939
protected $firstName;
4040
}

reference/constraints/Time.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ of the day when the event starts:
3434
class Event
3535
{
3636
/**
37-
* @Assert\Time()
37+
* @Assert\Time
3838
*/
3939
protected $startsAt;
4040
}

reference/constraints/UniqueEntity.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ between all of the constraints in your user table:
5252
* @var string $email
5353
*
5454
* @ORM\Column(name="email", type="string", length=255, unique=true)
55-
* @Assert\Email()
55+
* @Assert\Email
5656
*/
5757
protected $email;
5858

reference/constraints/Url.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Basic Usage
3333
class Author
3434
{
3535
/**
36-
* @Assert\Url()
36+
* @Assert\Url
3737
*/
3838
protected $bioUrl;
3939
}

reference/constraints/Valid.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ stores an ``Address`` instance in the ``$address`` property::
5656
class Address
5757
{
5858
/**
59-
* @Assert\NotBlank()
59+
* @Assert\NotBlank
6060
*/
6161
protected $street;
6262

validation.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ following:
6262
class Author
6363
{
6464
/**
65-
* @Assert\NotBlank()
65+
* @Assert\NotBlank
6666
*/
6767
public $name;
6868
}
@@ -541,7 +541,7 @@ class to have at least 3 characters.
541541
class Author
542542
{
543543
/**
544-
* @Assert\NotBlank()
544+
* @Assert\NotBlank
545545
* @Assert\Length(min=3)
546546
*/
547547
private $firstName;

validation/sequence_provider.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ entity and a new constraint group called ``Premium``:
178178
class User
179179
{
180180
/**
181-
* @Assert\NotBlank()
181+
* @Assert\NotBlank
182182
*/
183183
private $name;
184184

0 commit comments

Comments
 (0)
0