We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf0e87d commit 33477f8Copy full SHA for 33477f8
1 file changed
tests/system/Validation/RulesTest.php
@@ -100,6 +100,12 @@ public static function provideIfExist(): iterable
100
['foo' => ''],
101
false,
102
],
103
+ // Invalid array input
104
+ [
105
+ ['foo' => 'if_exist|alpha'],
106
+ ['foo' => ['bar' => '12345']],
107
+ false,
108
+ ],
109
// Input data does not exist then the other rules will be ignored
110
[
111
['foo' => 'if_exist|required'],
0 commit comments