Skip to content

Commit

Permalink
Upgrade ruleset up to PHP-CS-Fixer v3.48
Browse files Browse the repository at this point in the history
  • Loading branch information
erickskrauch committed Jan 23, 2024
1 parent 259b5cc commit 30b1946
Show file tree
Hide file tree
Showing 5 changed files with 271 additions and 591 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ jobs:

- name: PHP-CS-Fixer
if: matrix.php-versions == '8.1'
run: vendor/bin/php-cs-fixer fix --dry-run --format=checkstyle | cs2pr
run: vendor/bin/php-cs-fixer check --format=checkstyle | cs2pr
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,19 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Added
- `align_multiline_comment` fixer.
- `nullable_type_declaration` fixer.
- `php_unit_data_provider_return_type` fixer.
- `attribute_empty_parentheses` fixer.
- `numeric_literal_separator` fixer.

### Fixed
- Replace `compact_nullable_typehint` with `compact_nullable_type_declaration` (deprecated).
- Replace `curly_braces_position` with `braces_position` (deprecated).
- Replace `function_typehint_space` with `type_declaration_spaces` (deprecated).
- Replace `native_function_type_declaration_casing` with `native_type_declaration_casing` (deprecated).
- Replace `new_with_braces` with `new_with_parentheses` (deprecated).

## [1.0.1] - 2023-07-21
### Changed
Expand Down
5 changes: 2 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@
"require": {
"php": "^7.4 || ^8.0",
"erickskrauch/php-cs-fixer-custom-fixers": "^1.0.1",
"friendsofphp/php-cs-fixer": "^3.16",
"kubawerlos/php-cs-fixer-custom-fixers": "^3.13",
"symfony/polyfill-php80": "^1.15"
"friendsofphp/php-cs-fixer": "^3.47",
"kubawerlos/php-cs-fixer-custom-fixers": "^3.13"
},
"require-dev": {
"ergebnis/composer-normalize": "^2.28"
Expand Down
Loading

0 comments on commit 30b1946

Please sign in to comment.