Skip to content

Commit c83c2e7

Browse files
committed
Merge branch '3.4' into 4.1
* 3.4: Removed useless parentheses in Assert 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
}

0 commit comments

Comments
 (0)