Skip to content

Commit

Permalink
Updated PHP-CS-Fixer to not ignore PHP version now that PHP 8.2 is su…
Browse files Browse the repository at this point in the history
…pported, fixed deprecated config rules (#36)
  • Loading branch information
davidbyoung committed Jul 26, 2023
1 parent 0592b2a commit c4f19ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@
'@PSR12' => true,
'array_syntax' => ['syntax' => 'short'],
'blank_line_after_opening_tag' => true,
'braces' => ['allow_single_line_closure' => true],
'compact_nullable_typehint' => true,
'concat_space' => ['spacing' => 'one'],
'declare_equal_normalize' => ['space' => 'none'],
'declare_strict_types' => true,
'function_typehint_space' => true,
'method_argument_space' => ['on_multiline' => 'ensure_fully_multiline'],
// A very tiny micro-optimization to reduce the number of opcodes for native function calls
'native_function_invocation' => ['include' => ['@all']],
Expand Down Expand Up @@ -67,6 +65,7 @@
'single_quote' => true,
'single_trait_insert_per_statement' => true,
'standardize_not_equals' => true,
'type_declaration_spaces' => true
])
->setRiskyAllowed(true)
->setFinder(
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
},
"scripts": {
"phpcs-test": "@phpcs-fix --dry-run",
"phpcs-fix": "PHP_CS_FIXER_IGNORE_ENV=1 php-cs-fixer fix --config=.php-cs-fixer.dist.php -v --diff",
"phpcs-fix": "php-cs-fixer fix --config=.php-cs-fixer.dist.php -v --diff",
"phpunit": "php vendor/phpunit/phpunit/phpunit --coverage-clover ./.coverage/clover.xml",
"post-root-package-install": [
"php -r \"file_exists('.env') || copy('.env.dist', '.env');\""
Expand Down

0 comments on commit c4f19ba

Please sign in to comment.