8000 Upgrade dependency "friendsofphp/php-cs-fixer" to match PHP supported… · thecodingmachine/tdbm@fbb4ab1 · GitHub
[go: up one dir, main page]

Skip to content

Commit fbb4ab1

Browse files
dsavinahomersimpsons
authored andcommitted
Upgrade dependency "friendsofphp/php-cs-fixer" to match PHP supported versions
- Also upgrade "laminas/laminas-code" for full PSR-2 respect
1 parent 3304ab4 commit fbb4ab1

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ vendor/*
1313
/.travis/
1414
/vendor-bin/require-checker/vendor/
1515
/vendor-bin/couscous/vendor/
16+
.php-cs-fixer.cache
1617
.phpunit.result.cache
1718
/phpbench.sh
1819
/xdebug/

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"symfony/filesystem": "^2.7 || ^3 || ^4 || ^5",
3434
"ramsey/uuid": "^3.7 || ^4.0",
3535
"doctrine/annotations": "^1.10",
36-
"laminas/laminas-code": "^4.0",
36+
"laminas/laminas-code": "^4.7",
3737
"psr/container": "^1 || ^2",
3838
"brain-diminished/schema-version-control": "dev-master",
3939
"ext-PDO": "*",
@@ -46,7 +46,7 @@
4646
"phpunit/phpunit": "^9.5",
4747
"php-coveralls/php-coveralls": "^2.1",
4848
"wa72/simplelogger": "^1.0",
49-
"friendsofphp/php-cs-fixer": "^2.16.4",
49+
"friendsofphp/php-cs-fixer": "^3.11",
5050
"symfony/process": "^3 || ^4 || ^5",
5151
"thecodingmachine/tdbm-fluid-schema-builder": "^1.0.0",
5252
"phpstan/phpstan": "^0.12.81",

tests/TDBMDaoGeneratorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1638,7 +1638,7 @@ public function testCorrectTypeForPrimaryKeyAfterSave(): void
16381638
*/
16391639
public function testPSR2Compliance(): void
16401640
{
1641-
$process = new Process(['vendor/bin/php-cs-fixer', 'fix', 'src/Test/', '--dry-run', '--diff', '--diff-format=udiff', '--rules=@PSR2']);
1641+
$process = new Process(['vendor/bin/php-cs-fixer', 'fix', 'src/Test/', '--dry-run', '--diff', '--format=txt', '--rules=@PSR2']);
16421642
$process->run();
16431643

16441644
// executes after the command finishes

0 commit comments

Comments
 (0)
0