Skip to content

Commit 30b1946

Browse files
committed
Upgrade ruleset up to PHP-CS-Fixer v3.48
1 parent 259b5cc commit 30b1946

File tree

5 files changed

+271
-591
lines changed

5 files changed

+271
-591
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ jobs:
4848

4949
- name: PHP-CS-Fixer
5050
if: matrix.php-versions == '8.1'
51-
run: vendor/bin/php-cs-fixer fix --dry-run --format=checkstyle | cs2pr
51+
run: vendor/bin/php-cs-fixer check --format=checkstyle | cs2pr

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,19 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8+
### Added
9+
- `align_multiline_comment` fixer.
10+
- `nullable_type_declaration` fixer.
11+
- `php_unit_data_provider_return_type` fixer.
12+
- `attribute_empty_parentheses` fixer.
13+
- `numeric_literal_separator` fixer.
14+
15+
### Fixed
16+
- Replace `compact_nullable_typehint` with `compact_nullable_type_declaration` (deprecated).
17+
- Replace `curly_braces_position` with `braces_position` (deprecated).
18+
- Replace `function_typehint_space` with `type_declaration_spaces` (deprecated).
19+
- Replace `native_function_type_declaration_casing` with `native_type_declaration_casing` (deprecated).
20+
- Replace `new_with_braces` with `new_with_parentheses` (deprecated).
821

922
## [1.0.1] - 2023-07-21
1023
### Changed

composer.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,8 @@
2121
"require": {
2222
"php": "^7.4 || ^8.0",
2323
"erickskrauch/php-cs-fixer-custom-fixers": "^1.0.1",
24-
"friendsofphp/php-cs-fixer": "^3.16",
25-
"kubawerlos/php-cs-fixer-custom-fixers": "^3.13",
26-
"symfony/polyfill-php80": "^1.15"
24+
"friendsofphp/php-cs-fixer": "^3.47",
25+
"kubawerlos/php-cs-fixer-custom-fixers": "^3.13"
2726
},
2827
"require-dev": {
2928
"ergebnis/composer-normalize": "^2.28"

0 commit comments

Comments
 (0)