Skip to content

Commit

Permalink
Add versions 5.4-7.3 as supported
Browse files Browse the repository at this point in the history
  • Loading branch information
Nitamet committed Aug 18, 2023
1 parent 5f40d26 commit 2c7391a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Psalm/Internal/Analyzer/ProjectAnalyzer.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ class ProjectAnalyzer

private const PHP_VERSION_REGEX = '^(0|[1-9]\d*)\.(0|[1-9]\d*)(?:\..*)?$';

private const PHP_SUPPORTED_VERSIONS_REGEX = '^(7\.4|8\.[012])(\..*)?$';
private const PHP_SUPPORTED_VERSIONS_REGEX = '^(5\.[456]|7\.[01234]|8\.[012])(\..*)?$';

/**
* @param array<ReportOptions> $generated_report_options
Expand Down Expand Up @@ -1195,7 +1195,7 @@ public function setPhpVersion(string $version, string $source): void
if (!preg_match('/' . self::PHP_SUPPORTED_VERSIONS_REGEX . '/', $version)) {
fwrite(
STDERR,
'Psalm requires PHP version ">7.4". The specified version '
'Psalm supports PHP version ">=5.4". The specified version '
. $version
. " is either not supported or doesn't exist."
. PHP_EOL,
Expand Down

0 comments on commit 2c7391a

Please sign in to comment.