Skip to content

Commit

Permalink
Update PHP Coding Standards Fixer (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
sanmai committed Jun 13, 2023
1 parent ecb2724 commit 27f5e07
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Expand Up @@ -95,7 +95,7 @@ jobs:
- name: Restore PHP-CS-Fixer cache
uses: actions/cache@v3
with:
path: .php_cs.cache
path: build/cache/.php_cs.cache
key: php-cs-fixer-${{ env.PHP_VERSION }}-${{ hashFiles('composer.*') }}
restore-keys: |
php-cs-fixer-${{ env.PHP_VERSION }}-
Expand Down
1 change: 1 addition & 0 deletions .php-cs-fixer.dist.php
Expand Up @@ -61,6 +61,7 @@
'blank_line_between_import_groups' => false,
'blank_line_before_statement' => ['statements' => ['break', 'continue', 'declare', 'return', 'throw', 'try']],
'no_unset_on_property' => false,
'multiline_whitespace_before_semicolons' => false,
])
->setFinder(
PhpCsFixer\Finder::create()
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -14,7 +14,7 @@
},
"require-dev": {
"ergebnis/composer-normalize": "^2.8",
"friendsofphp/php-cs-fixer": "^3",
"friendsofphp/php-cs-fixer": "^3.17",
"infection/infection": ">=0.10.5",
"league/pipeline": "^0.3 || ^1.0",
"phan/phan": ">=1.1",
Expand Down
2 changes: 1 addition & 1 deletion src/Standard.php
Expand Up @@ -396,7 +396,7 @@ private static function applyOnce(iterable $previous, callable $func): iterable
*
* With no callback drops all null and false values (not unlike array_filter does by default).
*
* @param ?callable $func {@inheritdoc}
* @param ?callable $func
*
* @return $this
*/
Expand Down

0 comments on commit 27f5e07

Please sign in to comment.