Skip to content

Commit 11f92d4

Browse files
Add a null value to ensure that ExcludeIf properly rejects it as an invalid condition (#54973)
1 parent 9b060d8 commit 11f92d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Validation/ValidationExcludeIfTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function testItValidatesCallableAndBooleanAreAcceptableArguments()
4242
new ExcludeIf(true);
4343
new ExcludeIf(fn () => true);
4444

45-
foreach ([1, 1.1, 'phpinfo', new stdClass] as $condition) {
45+
foreach ([1, 1.1, 'phpinfo', new stdClass, null] as $condition) {
4646
try {
4747
new ExcludeIf($condition);
4848
$this->fail('The ExcludeIf constructor must not accept '.gettype($condition));

0 commit comments

Comments
 (0)