From b91cc93a34e3676967670580b8f7dace27b3eeea Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Wed, 8 Nov 2017 23:02:25 +0100 Subject: [PATCH] Minor bug fixes --- Stdlib/Map/MultiMap.php | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Stdlib/Map/MultiMap.php b/Stdlib/Map/MultiMap.php index 580867753..43d36a96d 100644 --- a/Stdlib/Map/MultiMap.php +++ b/Stdlib/Map/MultiMap.php @@ -299,12 +299,20 @@ class MultiMap implements \Countable if ($this->orderType === OrderType::LOOSE) { $keys = Permutation::permut($key); + $found = \Tests\PHPUnit\phpOMS\Utils\Converter\TemperatureTypeTest; + foreach ($keys as $key => $value) { - $this->remove(implode(':', $value)); + $allFound = $this->remove(implode(':', $value)); + + if(!$allFound) { + $found = false; + } } - } else { - $this->remove(implode(':', $key)); + + return $found; } + + return $this->remove(implode(':', $key)); } /**