Skip to content

Commit

Permalink
Merge pull request #915 from ergebnis/feature/php83
Browse files Browse the repository at this point in the history
Enhancement: Add `Config\RuleSet\Php83`
  • Loading branch information
localheinz committed Oct 10, 2023
2 parents 775fae1 + 1d9fa4a commit 65dffba
Show file tree
Hide file tree
Showing 7 changed files with 1,814 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
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.6.0...main`][6.6.0...main].

### Added

- Added `Config\Ruleset\Php83` rule set factory ([#914]), by [@localheinz]

### Changed

- Updated `friendsofphp/php-cs-fixer` ([#908]), by [@dependabot]
Expand Down Expand Up @@ -1293,6 +1297,7 @@ For a full diff see [`d899e77...1.0.0`][d899e77...1.0.0].
[#904]: https://github.com/ergebnis/php-cs-fixer-config/pull/904
[#908]: https://github.com/ergebnis/php-cs-fixer-config/pull/908
[#913]: https://github.com/ergebnis/php-cs-fixer-config/pull/913
[#914]: https://github.com/ergebnis/php-cs-fixer-config/pull/914

[@dependabot]: https://github.com/apps/dependabot
[@linuxjuggler]: https://github.com/linuxjuggler
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -11,7 +11,7 @@ coding-standards: vendor ## Lints YAML files with yamllint, normalizes composer.
yamllint -c .yamllint.yaml --strict .
composer normalize
mkdir -p .build/php-cs-fixer/
vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php --diff --verbose
PHP_CS_FIXER_IGNORE_ENV=1 vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php --diff --verbose

.PHONY: dependency-analysis
dependency-analysis: phive vendor ## Runs a dependency analysis with maglnet/composer-require-checker
Expand Down
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -40,6 +40,7 @@ Pick one of the rule sets:
- [`Ergebnis\PhpCsFixer\RuleSet\Php80`](src/RuleSet/Php80.php)
- [`Ergebnis\PhpCsFixer\RuleSet\Php81`](src/RuleSet/Php81.php)
- [`Ergebnis\PhpCsFixer\RuleSet\Php82`](src/RuleSet/Php82.php)
- [`Ergebnis\PhpCsFixer\RuleSet\Php83`](src/RuleSet/Php83.php)

Create a configuration file `.php-cs-fixer.php` in the root of your project:

Expand Down
10 changes: 10 additions & 0 deletions psalm-baseline.xml
Expand Up @@ -65,6 +65,11 @@
<code>new PhpCsFixer\Whitespace\LineBreakAfterStatementsFixer()</code>
</InternalMethod>
</file>
<file src="src/RuleSet/Php83.php">
<InternalMethod>
<code>new PhpCsFixer\Whitespace\LineBreakAfterStatementsFixer()</code>
</InternalMethod>
</file>
<file src="src/Rules.php">
<MixedArgumentTypeCoercion>
<code><![CDATA[\array_merge(
Expand Down Expand Up @@ -174,6 +179,11 @@
<code>new PhpCsFixer\Whitespace\LineBreakAfterStatementsFixer()</code>
</InternalMethod>
</file>
<file src="test/Unit/RuleSet/Php83Test.php">
<InternalMethod>
<code>new PhpCsFixer\Whitespace\LineBreakAfterStatementsFixer()</code>
</InternalMethod>
</file>
<file src="test/Unit/RuleSetTest.php">
<PossiblyUnusedMethod>
<code>provideValidHeader</code>
Expand Down

0 comments on commit 65dffba

Please sign in to comment.