Skip to content

Commit

Permalink
Upgrade php-cs-fixer to v3
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Dieleman committed Nov 6, 2023
1 parent fbd4fc2 commit 4274dae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
11 changes: 3 additions & 8 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,15 @@ CONTRIBUTING
Coding standards
----------------

We use the config file **.php_cs.dist** with the version **v2.2** of **friendsofphp/php-cs-fixer**.
We use the config file **.php_cs.dist** with the version **v3** of **friendsofphp/php-cs-fixer**.

Display proposed fixes without changing files
```bash
php-cs-fixer fix -v --dry-run ./
vendor/bin/php-cs-fixer fix -v --dry-run
```

Apply the proposed fixes
```bash
php-cs-fixer fix -v ./
```

If **php-cs-fixer** is not globally installed, you can run the command :
```bash
vendor/bin/php-cs-fixer fix -v ./
vendor/bin/php-cs-fixer fix -v
```

3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,8 @@
"ext-libxml": "*",
"ext-zlib": "*",
"ext-fileinfo": "*"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "~3.1"
}
}

0 comments on commit 4274dae

Please sign in to comment.