Skip to content

Commit cf0d3d8

Browse files
author
Harrison Heck
committed
Require PHP 7.1+ and Symfony 3.2+.
Updated php-cs-fixer to 2.0.
1 parent 611d052 commit cf0d3d8

File tree

2 files changed

+23
-20
lines changed

2 files changed

+23
-20
lines changed

.php_cs

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
11
<?php
22

3-
$finder = Symfony\CS\Finder\DefaultFinder::create()
4-
->in(__DIR__ . '/Exception')
5-
->in(__DIR__ . '/Form')
6-
->in(__DIR__ . '/Tests')
7-
->name('*.php')
8-
;
3+
$finder = PhpCsFixer\Finder::create()
4+
->in(__DIR__ . '/src')
5+
->in(__DIR__ . '/tests');
96

10-
return Symfony\CS\Config\Config::create()
11-
->level(Symfony\CS\FixerInterface::SYMFONY_LEVEL)
12-
->fixers(['concat_with_spaces', 'short_array_syntax', 'ordered_use', '-pre_increment'])
13-
->finder($finder)
7+
return PhpCsFixer\Config::create()
8+
->setRules([
9+
'@Symfony' => true,
10+
'concat_space' => ['spacing' => 'one'],
11+
'array_syntax' => ['syntax' => 'short'],
12+
'ordered_imports' => true,
13+
'pre_increment' => false,
14+
'phpdoc_order' => true,
15+
'blank_line_after_opening_tag' => true,
16+
'phpdoc_align' => false,
17+
])
18+
->setFinder($finder)
1419
->setUsingCache(true);

composer.json

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,19 @@
55
"type": "library",
66
"license": "BSD-3-Clause",
77
"require": {
8-
"php": ">=5.4",
9-
"symfony/framework-bundle": ">=2.3",
10-
"symfony/form": ">=2.3"
8+
"php": ">=7.1",
9+
"symfony/framework-bundle": "^3.2",
10+
"symfony/form": "^3.2"
1111
},
1212
"require-dev": {
13-
"phpunit/phpunit": "4.6.*",
14-
"symfony/validator": "~2.3",
15-
"fabpot/php-cs-fixer": "~1.9"
16-
},
17-
"config": {
18-
"bin-dir": "bin"
13+
"phpunit/phpunit": "^5.7",
14+
"symfony/validator": "^3.2",
15+
"friendsofphp/php-cs-fixer": "^2.0",
16+
"symfony/security": "^3.2"
1917
},
2018
"autoload": {
2119
"psr-4": {
22-
"Linio\\DynamicFormBundle\\": ""
20+
"Linio\\DynamicFormBundle\\": "src/"
2321
}
2422
}
2523
}

0 commit comments

Comments
 (0)