Skip to content

Commit

Permalink
Merge pull request #218 from TheDragonCode/4.x
Browse files Browse the repository at this point in the history
Added rules for PHP 8.3
  • Loading branch information
andrey-helldar authored Feb 20, 2024
2 parents c430115 + 4871d19 commit a429fb3
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/Output/SummaryOutput.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,7 @@ class SummaryOutput extends BaseOutput
'8.1-risky' => 'PHP 8.1 with risky',
'8.2' => 'PHP 8.2',
'8.2-risky' => 'PHP 8.2 with risky',
'8.3' => 'PHP 8.3',
'8.3-risky' => 'PHP 8.3 with risky',
];
}
17 changes: 17 additions & 0 deletions resources/presets/8.3-risky.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

declare(strict_types=1);

use DragonCode\CodeStyler\Factories\ConfigurationFactory;
use DragonCode\CodeStyler\Fixers\JsonRiskyFixer;

$default = require base_path('resources/presets/default.php');
$risky = require base_path('resources/presets/risky.php');

return ConfigurationFactory::preset(
array_merge($default, $risky, [
'@PHP83Migration' => true,

(new JsonRiskyFixer())->getName() => true,
])
);
11 changes: 11 additions & 0 deletions resources/presets/8.3.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

declare(strict_types=1);

use DragonCode\CodeStyler\Factories\ConfigurationFactory;

$default = require base_path('resources/presets/default.php');

return ConfigurationFactory::preset(array_merge($default, [
'@PHP83Migration' => true,
]));

0 comments on commit a429fb3

Please sign in to comment.