updated composer

This commit is contained in:
2021-05-18 13:47:03 +00:00
parent e248cd036c
commit ba92152daa
1187 changed files with 20804 additions and 22320 deletions
+6 -9
View File
@@ -22,7 +22,7 @@ class PreReleaseSuffix {
/** @var int */
private $number = 0;
/** @var string */
/** @var string */
private $full;
/**
@@ -56,12 +56,9 @@ class PreReleaseSuffix {
return $this->getNumber() > $suffix->getNumber();
}
/**
* @param $value
*/
private function mapValueToScore($value): int {
$value = strtolower($value);
private function mapValueToScore(string $value): int {
$value = \strtolower($value);
if (\array_key_exists($value, self::valueScoreMap)) {
return self::valueScoreMap[$value];
}
@@ -69,14 +66,14 @@ class PreReleaseSuffix {
return 0;
}
private function parseValue($value): void {
private function parseValue(string $value): void {
$regex = '/-?((dev|beta|b|rc|alpha|a|patch|p)\.?(\d*)).*$/i';
if (\preg_match($regex, $value, $matches) !== 1) {
throw new InvalidPreReleaseSuffixException(\sprintf('Invalid label %s', $value));
}
$this->full = $matches[1];
$this->full = $matches[1];
$this->value = $matches[2];
if ($matches[3] !== '') {