Skip to content

Commit 0a7c5f6

Browse files
committed
Update PhpCsFixer
1 parent 129f1a1 commit 0a7c5f6

File tree

3 files changed

+100
-109
lines changed

3 files changed

+100
-109
lines changed

.php_cs.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
<?php
22

3+
use PhpCsFixer\Config;
4+
35
$finder = PhpCsFixer\Finder::create()
46
->in(__DIR__);
57

6-
return PhpCsFixer\Config::create()
8+
return (new Config())
79
->setRiskyAllowed(true)
810
->setRules([
911
'@PSR2' => true,

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"require-dev": {
2020
"ext-sockets": "*",
2121
"phpunit/phpunit": "^8.5.14",
22-
"friendsofphp/php-cs-fixer": "^2.18.2",
22+
"friendsofphp/php-cs-fixer": "^3.3.2",
2323
"symfony/dotenv": "^5.2.3",
2424
"donatj/mock-webserver": "^2.4.0"
2525
},

0 commit comments

Comments
 (0)