File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ The ``Json`` constraint can be applied to a property or a "getter" method:
35
35
* message = "You've entered an invalid Json."
36
36
* )
37
37
*/
38
- private $chapters;
38
+ private $chapters;
39
39
}
40
40
41
41
.. code-block :: yaml
@@ -74,8 +74,6 @@ The ``Json`` constraint can be applied to a property or a "getter" method:
74
74
75
75
class Book
76
76
{
77
- private $chapters;
78
-
79
77
public static function loadValidatorMetadata(ClassMetadata $metadata)
80
78
{
81
79
$metadata->addPropertyConstraint('chapters', new Assert\Json([
Original file line number Diff line number Diff line change @@ -74,8 +74,6 @@ string meant to contain a timezone identifier (e.g. ``America/New_York``):
74
74
75
75
class UserSettings
76
76
{
77
- protected $timezone;
78
-
79
77
public static function loadValidatorMetadata(ClassMetadata $metadata)
80
78
{
81
79
$metadata->addPropertyConstraint('timezone', new Assert\Timezone());
You can’t perform that action at this time.
0 commit comments