diff --git a/src/Constraint/MultiConstraint.php b/src/Constraint/MultiConstraint.php index 28dc0a7b..94a39646 100644 --- a/src/Constraint/MultiConstraint.php +++ b/src/Constraint/MultiConstraint.php @@ -234,6 +234,9 @@ public static function create(array $constraints, $conjunctive = true) return new MatchAllConstraint(); } unset($constraints[$k]); + if (1 === \count($constraints)) { + return $constraints[0]; + } } }