Skip to content

Commit b6fe0eb

Browse files
dbuNyholm
authored andcommitted
allow completely empty configuration
1 parent 3606abc commit b6fe0eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PhpUnit/AbstractConfigurationConstraint.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ protected function validateConfigurationValuesArray($configurationValues)
3333
}
3434

3535
foreach ($configurationValues as $values) {
36-
if (!is_array($values)) {
36+
if (!is_array($values) && null !== $values) {
3737
throw new \InvalidArgumentException('Configuration values should be an array of arrays');
3838
}
3939
}

0 commit comments

Comments
 (0)