1
0
Fork 0

Let's be gentle and allow FALSE too

pull/3749/head
Rob Bast 2015-02-16 16:54:52 +01:00
parent ef92a06205
commit 47d75f77d5
1 changed files with 3 additions and 2 deletions

View File

@ -373,8 +373,9 @@ EOT
));
}
if (1 === count($values) && $booleanValidator($values[0])) {
if (false === $booleanNormalizer($values[0])) {
if (1 === count($values)) {
$bool = strtolower($values[0]);
if (true === $booleanValidator($bool) && false === $booleanNormalizer($bool)) {
return $this->configSource->addRepository($matches[1], false);
}
}