We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e888a0 commit 54903efCopy full SHA for 54903ef
tests/system/Validation/RulesTest.php
@@ -779,7 +779,7 @@ public static function provideRequiredWithAndOtherRuleWithValueZero(): iterable
779
}
780
781
#[DataProvider('provideRequiredWithout')]
782
- public function testRequiredWithout(?string $field, ?string $check, bool $expected): void
+ public function testRequiredWithout(string $field, ?string $check, bool $expected): void
783
{
784
$data = [
785
'foo' => 'bar',
@@ -802,8 +802,8 @@ public static function provideRequiredWithout(): iterable
802
yield from [
803
['nope', 'bars', false],
804
['foo', 'nope', true],
805
- [null, null, false],
806
- [null, 'foo', true],
+ ['', null, false],
+ ['', 'foo', true],
807
['foo', null, true],
808
[
809
'array.emptyField1',
0 commit comments