Skip to content

Commit

Permalink
DEV-576 Add PHP 8.2 & 8.3 (#3)
Browse files Browse the repository at this point in the history
Co-authored-by: Danny van Wijk <[email protected]>
  • Loading branch information
dannyvw and Danny van Wijk authored Apr 11, 2024
1 parent 0362995 commit 1ce6b4a
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/PhpCsFixer/Rules.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,24 @@ public static function getRulesForPHP81(array $overrideRules = []): array
return \array_merge(self::getRulesForPHP80($rules), $overrideRules);
}

public static function getRulesForPHP82(array $overrideRules = []): array
{
$rules = [
'@PHP82Migration' => true,
];

return \array_merge(self::getRulesForPHP81($rules), $overrideRules);
}

public static function getRulesForPHP83(array $overrideRules = []): array
{
$rules = [
'@PHP83Migration' => true,
];

return \array_merge(self::getRulesForPHP82($rules), $overrideRules);
}

private static function getBasicPhpRules(): array
{
return [
Expand Down

0 comments on commit 1ce6b4a

Please sign in to comment.