Browse Source

Pass additional data even when it's an empty array

ravage84 2 years ago
parent
commit
aa83d42c89
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/TestCase/Validation/ValidatorTest.php

+ 1 - 1
tests/TestCase/Validation/ValidatorTest.php

@@ -2917,7 +2917,7 @@ class ValidatorTest extends TestCase
         mixed $additional = null
     ): void {
         $validator = new Validator();
-        if ($additional) {
+        if ($additional !== null) {
             $validator->{$rule}($fieldName, $additional);
         } else {
             $validator->{$rule}($fieldName);