Skip to content

Commit

Permalink
Merge pull request #8643 from franmomu/patch-1
Browse files Browse the repository at this point in the history
Allow to set PHP 8.2 version
  • Loading branch information
orklah committed Nov 1, 2022
2 parents 3f0107e + 933caa8 commit d3f4240
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Psalm/Internal/Analyzer/ProjectAnalyzer.php
Expand Up @@ -1295,7 +1295,7 @@ public function refactorCodeAfterCompletion(array $to_refactor): void
*/
public function setPhpVersion(string $version, string $source): void
{
if (!preg_match('/^(5\.[456]|7\.[01234]|8\.[01])(\..*)?$/', $version)) {
if (!preg_match('/^(5\.[456]|7\.[01234]|8\.[012])(\..*)?$/', $version)) {
throw new UnexpectedValueException('Expecting a version number in the format x.y');
}

Expand Down

0 comments on commit d3f4240

Please sign in to comment.