Skip to content

Commit

Permalink
chore: Update Grumphp configuration.
Browse files Browse the repository at this point in the history
Disable the php-cs-fixer rule "return_assignment".
  • Loading branch information
drupol committed Sep 22, 2020
1 parent 8ea76af commit 855aa63
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .php_cs.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

use drupol\PhpCsFixerConfigsPhp\Config\Php71;

$config = Php71::create();

$rules = $config->getRules();

$rules['return_assignment'] = false;

return $config->setRules($rules);
1 change: 1 addition & 0 deletions grumphp.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ imports:
- { resource: vendor/drupol/php-conventions/config/php71/grumphp.yml }

parameters:
tasks.phpcsfixer2.config: .php_cs.dist
extra_tasks:
psalm:
show_info: true
Expand Down

0 comments on commit 855aa63

Please sign in to comment.