Skip to content

Commit

Permalink
Fix PHP 5.3 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek authored Jul 12, 2024
1 parent 8536c1b commit d9dae3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/VersionParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public static function normalizeStability($stability)
{
$stability = strtolower((string) $stability);

if (!in_array($stability, ['stable', 'rc', 'beta', 'alpha', 'dev'], true)) {
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');
}

Expand Down

0 comments on commit d9dae3c

Please sign in to comment.