@@ -24,7 +24,7 @@ |
||
24 | 24 | * Note that this rule only checks if the URL scheme and host part are correct. |
25 | 25 | * It does not check the remaining parts of a URL. |
26 | 26 | */ |
27 | -#[Attribute(Attribute::TARGET_PROPERTY | Attribute::IS_REPEATABLE)] |
|
27 | +#[Attribute(Attribute::TARGET_PROPERTY|Attribute::IS_REPEATABLE)] |
|
28 | 28 | final class Url implements SerializableRuleInterface, SkipOnErrorInterface, WhenInterface, SkipOnEmptyInterface |
29 | 29 | { |
30 | 30 | use SkipOnEmptyTrait; |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | * |
20 | 20 | * @psalm-type EmptyCriteriaType = callable(mixed,bool):bool |
21 | 21 | */ |
22 | -#[Attribute(Attribute::TARGET_PROPERTY | Attribute::IS_REPEATABLE)] |
|
22 | +#[Attribute(Attribute::TARGET_PROPERTY|Attribute::IS_REPEATABLE)] |
|
23 | 23 | final class Required implements SerializableRuleInterface, SkipOnErrorInterface, WhenInterface |
24 | 24 | { |
25 | 25 | use SkipOnErrorTrait; |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | */ |
45 | 45 | private ?Closure $when = null, |
46 | 46 | ) { |
47 | - $this->emptyCriteria = $emptyCriteria ?? new WhenEmpty(trimString: true); |
|
47 | + $this->emptyCriteria = $emptyCriteria ?? new WhenEmpty(trimString : true); |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | public function getName(): string |
@@ -18,7 +18,7 @@ |
||
18 | 18 | /** |
19 | 19 | * Validates that the value is a valid json. |
20 | 20 | */ |
21 | -#[Attribute(Attribute::TARGET_PROPERTY | Attribute::IS_REPEATABLE)] |
|
21 | +#[Attribute(Attribute::TARGET_PROPERTY|Attribute::IS_REPEATABLE)] |
|
22 | 22 | final class Json implements SerializableRuleInterface, SkipOnErrorInterface, WhenInterface, SkipOnEmptyInterface |
23 | 23 | { |
24 | 24 | use SkipOnEmptyTrait; |
@@ -25,7 +25,7 @@ |
||
25 | 25 | * |
26 | 26 | * It also may change the value if normalization of IPv6 expansion is enabled. |
27 | 27 | */ |
28 | -#[Attribute(Attribute::TARGET_PROPERTY | Attribute::IS_REPEATABLE)] |
|
28 | +#[Attribute(Attribute::TARGET_PROPERTY|Attribute::IS_REPEATABLE)] |
|
29 | 29 | final class Ip implements SerializableRuleInterface, SkipOnErrorInterface, WhenInterface, SkipOnEmptyInterface |
30 | 30 | { |
31 | 31 | use SkipOnEmptyTrait; |
@@ -15,7 +15,7 @@ |
||
15 | 15 | use Yiisoft\Validator\ValidationContext; |
16 | 16 | use Yiisoft\Validator\WhenInterface; |
17 | 17 | |
18 | -#[Attribute(Attribute::TARGET_PROPERTY | Attribute::IS_REPEATABLE)] |
|
18 | +#[Attribute(Attribute::TARGET_PROPERTY|Attribute::IS_REPEATABLE)] |
|
19 | 19 | final class Subset implements SerializableRuleInterface, SkipOnErrorInterface, WhenInterface, SkipOnEmptyInterface |
20 | 20 | { |
21 | 21 | use SkipOnEmptyTrait; |
@@ -22,7 +22,7 @@ |
||
22 | 22 | /** |
23 | 23 | * Validates an array by checking each of its elements against a set of rules. |
24 | 24 | */ |
25 | -#[Attribute(Attribute::TARGET_PROPERTY | Attribute::IS_REPEATABLE)] |
|
25 | +#[Attribute(Attribute::TARGET_PROPERTY|Attribute::IS_REPEATABLE)] |
|
26 | 26 | final class Each implements |
27 | 27 | SerializableRuleInterface, |
28 | 28 | SkipOnErrorInterface, |
@@ -18,7 +18,7 @@ |
||
18 | 18 | /** |
19 | 19 | * Checks if at least {@see AtLeast::$min} of many attributes are filled. |
20 | 20 | */ |
21 | -#[Attribute(Attribute::TARGET_PROPERTY | Attribute::IS_REPEATABLE)] |
|
21 | +#[Attribute(Attribute::TARGET_PROPERTY|Attribute::IS_REPEATABLE)] |
|
22 | 22 | final class AtLeast implements SerializableRuleInterface, SkipOnErrorInterface, WhenInterface, SkipOnEmptyInterface |
23 | 23 | { |
24 | 24 | use SkipOnEmptyTrait; |
@@ -21,7 +21,7 @@ |
||
21 | 21 | /** |
22 | 22 | * Can be used for validation of nested structures. |
23 | 23 | */ |
24 | -#[Attribute(Attribute::TARGET_PROPERTY | Attribute::IS_REPEATABLE)] |
|
24 | +#[Attribute(Attribute::TARGET_PROPERTY|Attribute::IS_REPEATABLE)] |
|
25 | 25 | final class StopOnError implements SerializableRuleInterface, SkipOnErrorInterface, WhenInterface, SkipOnEmptyInterface |
26 | 26 | { |
27 | 27 | use SkipOnEmptyTrait; |
@@ -18,7 +18,7 @@ |
||
18 | 18 | use Yiisoft\Validator\ValidationContext; |
19 | 19 | use Yiisoft\Validator\WhenInterface; |
20 | 20 | |
21 | -#[Attribute(Attribute::TARGET_PROPERTY | Attribute::IS_REPEATABLE)] |
|
21 | +#[Attribute(Attribute::TARGET_PROPERTY|Attribute::IS_REPEATABLE)] |
|
22 | 22 | final class Callback implements |
23 | 23 | SerializableRuleInterface, |
24 | 24 | SkipOnErrorInterface, |