Skip to content

Commit 7b4854f

Browse files
author
Jonathan Nessier
committed
Updated dependencies and added support for PHP 8.0
1 parent cf88f89 commit 7b4854f

File tree

5 files changed

+2618
-2085
lines changed

5 files changed

+2618
-2085
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/.php_cs.cache
1+
/.php-cs-fixer.cache
22
/.phpunit.result.cache
33
/.idea
44
/vendor

.php_cs renamed to .php-cs-fixer.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
<?php
22

3-
PhpCsFixer\Config::create()->setCacheFile(__DIR__.'/.php_cs.cache');
4-
53
// Define excludes
4+
use PhpCsFixer\Finder;
5+
66
$excludes = [];
77

88
// Create finder
9-
$finder = PhpCsFixer\Finder::create()
9+
$finder = (new Finder())
1010
->exclude($excludes)
1111
->in([
1212
'./src',
1313
'./tests',
1414
]);
1515

1616
// Create config
17-
return PhpCsFixer\Config::create()
17+
return (new PhpCsFixer\Config())
18+
->setCacheFile(__DIR__ . '/.php-cs-fixer.cache')
1819
->setRiskyAllowed(true)
1920
->setRules([
2021
'@PSR1' => true,

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@
2525
"run phpunit": "phpunit --configuration phpunit.xml.dist"
2626
},
2727
"require": {
28-
"php": "^7.3",
29-
"friendsofphp/php-cs-fixer": "^2.16"
28+
"php": ">=7.3"
3029
},
3130
"require-dev": {
32-
"phpunit/phpunit": "^9.2",
31+
"friendsofphp/php-cs-fixer": "^3.0",
32+
"phpunit/phpunit": "^9.5",
3333
"php-coveralls/php-coveralls": "^2.2",
3434
"pds/skeleton": "^1.0"
3535
}

0 commit comments

Comments
 (0)