From b6fe0eb680a7eabdda511b6df4c0e428394654cb Mon Sep 17 00:00:00 2001 From: David Buchmann Date: Fri, 2 Mar 2018 12:16:38 +0100 Subject: [PATCH 1/2] allow completely empty configuration --- PhpUnit/AbstractConfigurationConstraint.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PhpUnit/AbstractConfigurationConstraint.php b/PhpUnit/AbstractConfigurationConstraint.php index 7c28eb8..37c8852 100644 --- a/PhpUnit/AbstractConfigurationConstraint.php +++ b/PhpUnit/AbstractConfigurationConstraint.php @@ -33,7 +33,7 @@ protected function validateConfigurationValuesArray($configurationValues) } foreach ($configurationValues as $values) { - if (!is_array($values)) { + if (!is_array($values) && null !== $values) { throw new \InvalidArgumentException('Configuration values should be an array of arrays'); } } From 65f2d687639a1d6bc92bac6e5f1bd759624d0e7d Mon Sep 17 00:00:00 2001 From: Tobias Nyholm Date: Mon, 5 Mar 2018 10:18:57 +0100 Subject: [PATCH 2/2] Added changelog 3.1.1 --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 20b2f63..aa39c3c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 3.1.1 + +- Allow for completely empty configuration + ## 3.1.0 - Support for Symfony 4