You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (is_array($constraints) && !array_is_list($constraints)) {
33
+
if (\is_array($constraints) && !array_is_list($constraints)) {
34
34
trigger_deprecation('symfony/validator', '7.3', 'Passing an array of options to configure the "%s" constraint is deprecated, use named arguments instead.', static::class);
Copy file name to clipboardExpand all lines: Constraints/ZeroComparisonConstraintTrait.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -29,11 +29,11 @@ public function __construct(?array $options = null, ?string $message = null, ?ar
29
29
trigger_deprecation('symfony/validator', '7.3', 'Passing an array of options to configure the "%s" constraint is deprecated, use named arguments instead.', static::class);
30
30
}
31
31
32
-
if (is_array($options) && isset($options['propertyPath'])) {
32
+
if (\is_array($options) && isset($options['propertyPath'])) {
33
33
thrownewConstraintDefinitionException(\sprintf('The "propertyPath" option of the "%s" constraint cannot be set.', static::class));
34
34
}
35
35
36
-
if (is_array($options) && isset($options['value'])) {
36
+
if (\is_array($options) && isset($options['value'])) {
37
37
thrownewConstraintDefinitionException(\sprintf('The "value" option of the "%s" constraint cannot be set.', static::class));
0 commit comments