Skip to content

Commit

Permalink
Enhancement: Add support for PHP 8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Nov 24, 2024
1 parent 0cf41d6 commit b9e0a91
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ branches:
- context: "Tests (8.3, highest)"
- context: "Tests (8.3, locked)"
- context: "Tests (8.3, lowest)"
- context: "Tests (8.4, highest)"
- context: "Tests (8.4, locked)"
- context: "Tests (8.4, lowest)"
strict: false
restrictions:

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/integrate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ jobs:
- "8.1"
- "8.2"
- "8.3"
- "8.4"

dependencies:
- "lowest"
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

For a full diff see [`6.37.0...main`][6.37.0...main].

### Changed

- Added support for PHP 8.4 ([#1138]), by [@localheinz]

## [`6.37.0`][6.37.0]

For a full diff see [`6.36.0...6.37.0`][6.36.0...6.37.0].
Expand Down Expand Up @@ -1761,6 +1765,7 @@ For a full diff see [`d899e77...1.0.0`][d899e77...1.0.0].
[#1102]: https://github.com/ergebnis/php-cs-fixer-config/pull/1102
[#1103]: https://github.com/ergebnis/php-cs-fixer-config/pull/1103
[#1109]: https://github.com/ergebnis/php-cs-fixer-config/pull/1109
[#1138]: https://github.com/ergebnis/php-cs-fixer-config/pull/1138

[@dependabot]: https://github.com/apps/dependabot
[@linuxjuggler]: https://github.com/linuxjuggler
Expand Down
12 changes: 12 additions & 0 deletions test/EndToEnd/RuleSet/AbstractRuleSetTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,17 @@ final protected function tearDown(): void

final public function testConfigurationIsConsideredValid(): void
{
$env = [];

if (\PHP_VERSION_ID >= 80400) {
$env = [
/**
* @see https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/v3.64.0/README.md#supported-php-versions
*/
'PHP_CS_FIXER_IGNORE_ENV' => true,
];
}

$process = new Process\Process(
[
'vendor/bin/php-cs-fixer',
Expand All @@ -50,6 +61,7 @@ final public function testConfigurationIsConsideredValid(): void
self::configPath(),
],
null,
$env,
);

$process->run();
Expand Down

0 comments on commit b9e0a91

Please sign in to comment.