From 7110172da874ab710e827e5d62ba2fbade2bd779 Mon Sep 17 00:00:00 2001 From: Yanick Witschi Date: Thu, 8 Jun 2023 16:41:19 +0200 Subject: [PATCH] Fixed VersionParser being unable to parse its own MultiConstraint format --- src/VersionParser.php | 2 +- tests/VersionParserTest.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/VersionParser.php b/src/VersionParser.php index 0b0bc506..107dd8dd 100644 --- a/src/VersionParser.php +++ b/src/VersionParser.php @@ -261,7 +261,7 @@ public function parseConstraints($constraints) $orGroups = array(); foreach ($orConstraints as $orConstraint) { - $andConstraints = preg_split('{(?< ,]) *(?< ,]) *(?assertSame((string) $multi, (string) $parser->parseConstraints($constraint)); + $this->assertSame((string) $multi, (string) $parser->parseConstraints((string) $multi)); } /**