Skip to content

Commit 2ef774c

Browse files
Ensure all properties have a type
1 parent 34662a3 commit 2ef774c

File tree

9 files changed

+9
-0
lines changed

9 files changed

+9
-0
lines changed

Constraints/Choice.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ class Choice extends Constraint
3838
protected static $errorNames = self::ERROR_NAMES;
3939

4040
public $choices;
41+
/** @var callable|string|null */
4142
public $callback;
4243
public $multiple = false;
4344
public $strict = true;

Constraints/Email.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ class Email extends Constraint
5353

5454
public $message = 'This value is not a valid email address.';
5555
public $mode;
56+
/** @var callable|null */
5657
public $normalizer;
5758

5859
public function __construct(

Constraints/Ip.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ class Ip extends Constraint
8484

8585
public $message = 'This is not a valid IP address.';
8686

87+
/** @var callable|null */
8788
public $normalizer;
8889

8990
public function __construct(

Constraints/Length.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ class Length extends Constraint
5858
public $max;
5959
public $min;
6060
public $charset = 'UTF-8';
61+
/** @var callable|null */
6162
public $normalizer;
6263
/** @var self::COUNT_* */
6364
public string $countUnit = self::COUNT_CODEPOINTS;

Constraints/NotBlank.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ class NotBlank extends Constraint
3737

3838
public $message = 'This value should not be blank.';
3939
public $allowNull = false;
40+
/** @var callable|null */
4041
public $normalizer;
4142

4243
public function __construct(array $options = null, string $message = null, bool $allowNull = null, callable $normalizer = null, array $groups = null, mixed $payload = null)

Constraints/Regex.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ class Regex extends Constraint
3838
public $pattern;
3939
public $htmlPattern;
4040
public $match = true;
41+
/** @var callable|null */
4142
public $normalizer;
4243

4344
public function __construct(

Constraints/Unique.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ class Unique extends Constraint
3737
protected static $errorNames = self::ERROR_NAMES;
3838

3939
public $message = 'This collection should contain only unique elements.';
40+
/** @var callable|null */
4041
public $normalizer;
4142

4243
/**

Constraints/Url.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ class Url extends Constraint
3737
public $message = 'This value is not a valid URL.';
3838
public $protocols = ['http', 'https'];
3939
public $relativeProtocol = false;
40+
/** @var callable|null */
4041
public $normalizer;
4142

4243
public function __construct(

Constraints/Uuid.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ class Uuid extends Constraint
9797
*/
9898
public $versions = self::ALL_VERSIONS;
9999

100+
/** @var callable|null */
100101
public $normalizer;
101102

102103
/**

0 commit comments

Comments
 (0)