update kirby
This commit is contained in:
parent
85869bdb48
commit
4768abeb13
94 changed files with 777 additions and 459 deletions
5
vendor/composer/semver/src/VersionParser.php
vendored
5
vendor/composer/semver/src/VersionParser.php
vendored
|
|
@ -82,11 +82,16 @@ class VersionParser
|
|||
* @param string $stability
|
||||
*
|
||||
* @return string
|
||||
* @phpstan-return 'stable'|'RC'|'beta'|'alpha'|'dev'
|
||||
*/
|
||||
public static function normalizeStability($stability)
|
||||
{
|
||||
$stability = strtolower((string) $stability);
|
||||
|
||||
if (!in_array($stability, array('stable', 'rc', 'beta', 'alpha', 'dev'), true)) {
|
||||
throw new \InvalidArgumentException('Invalid stability string "'.$stability.'", expected one of stable, RC, beta, alpha or dev');
|
||||
}
|
||||
|
||||
return $stability === 'rc' ? 'RC' : $stability;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue