From 354bd7f7e29a1f0b9c81422abe9d20572ea6efc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=97=AB=E5=85=B4=E8=8C=82?= Date: Mon, 18 Dec 2017 14:55:03 +0800 Subject: [PATCH] Update parse name version parirs name to lower --- src/Composer/Package/Version/VersionParser.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Composer/Package/Version/VersionParser.php b/src/Composer/Package/Version/VersionParser.php index 54d7f09c0..5edca4777 100644 --- a/src/Composer/Package/Version/VersionParser.php +++ b/src/Composer/Package/Version/VersionParser.php @@ -54,10 +54,10 @@ class VersionParser extends SemverVersionParser } if (strpos($pair, ' ')) { - list($name, $version) = explode(" ", $pair, 2); - $result[] = array('name' => $name, 'version' => $version); + list($name, $version) = explode(' ', $pair, 2); + $result[] = array('name' => strtolower($name), 'version' => $version); } else { - $result[] = array('name' => $pair); + $result[] = array('name' => strtolower($pair)); } }