Skip to content

Commit 733c1f2

Browse files
committed
minor #11412 small constraint improvements (OskarStark)
This PR was merged into the master branch. Discussion ---------- small constraint improvements <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- b3b39b0 small constraint improvements
2 parents 2a5b59c + b3b39b0 commit 733c1f2

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

reference/constraints/Json.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ The ``Json`` constraint can be applied to a property or a "getter" method:
3535
* message = "You've entered an invalid Json."
3636
* )
3737
*/
38-
private $chapters;
38+
private $chapters;
3939
}
4040
4141
.. code-block:: yaml
@@ -74,8 +74,6 @@ The ``Json`` constraint can be applied to a property or a "getter" method:
7474
7575
class Book
7676
{
77-
private $chapters;
78-
7977
public static function loadValidatorMetadata(ClassMetadata $metadata)
8078
{
8179
$metadata->addPropertyConstraint('chapters', new Assert\Json([

reference/constraints/Timezone.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@ string meant to contain a timezone identifier (e.g. ``America/New_York``):
7474
7575
class UserSettings
7676
{
77-
protected $timezone;
78-
7977
public static function loadValidatorMetadata(ClassMetadata $metadata)
8078
{
8179
$metadata->addPropertyConstraint('timezone', new Assert\Timezone());

0 commit comments

Comments
 (0)