File tree Expand file tree Collapse file tree 4 files changed +5
-7
lines changed Expand file tree Collapse file tree 4 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 2
2
/phpunit.xml
3
3
/vendor /
4
4
/tests /tmp /*
5
- /.php_cs .cache
5
+ /.php-cs-fixer .cache
6
6
/.phpunit.result.cache
Original file line number Diff line number Diff line change 4
4
exit (0 );
5
5
}
6
6
7
- $ finder = PhpCsFixer \Finder:: create ( )
7
+ $ finder = ( new PhpCsFixer \Finder () )
8
8
->in (__DIR__ )
9
9
->exclude ('vendor ' )
10
10
->exclude ('tests/tmp ' )
13
13
->notName ('*.tpl.php ' )
14
14
;
15
15
16
- return PhpCsFixer \Config:: create ( )
16
+ return ( new PhpCsFixer \Config () )
17
17
->setRules (array (
18
18
'@PHPUnit75Migration:risky ' => true ,
19
19
'@Symfony ' => true ,
20
20
'@Symfony:risky ' => true ,
21
- 'array_syntax ' => ['syntax ' => 'short ' ],
22
21
'header_comment ' => [
23
22
'header ' => <<<EOF
24
23
This file is part of the Symfony MakerBundle package.
Original file line number Diff line number Diff line change 29
29
"composer/semver" : " ^3.0@dev" ,
30
30
"doctrine/doctrine-bundle" : " ^1.8|^2.0" ,
31
31
"doctrine/orm" : " ^2.3" ,
32
- "friendsofphp/php-cs-fixer" : " ^2.8 " ,
32
+ "friendsofphp/php-cs-fixer" : " ^3.0 " ,
33
33
"friendsoftwig/twigcs" : " ^4.1.0|^5.0.0" ,
34
34
"symfony/http-client" : " ^4.3|^5.0" ,
35
35
"symfony/phpunit-bridge" : " ^4.3|^5.0" ,
Original file line number Diff line number Diff line change 3
3
* php-cs-fixer configuration file used to validate
4
4
* generated code in our tests.
5
5
*/
6
- return PhpCsFixer\Config::create( )
6
+ return (new PhpCsFixer\Config() )
7
7
->setRules(array(
8
8
'@Symfony' => true,
9
9
'@Symfony:risky' => true,
10
10
'native_function_invocation' => false,
11
- 'array_syntax' => ['syntax' => 'short'],
12
11
))
13
12
->setRiskyAllowed(true)
14
13
;
You can’t perform that action at this time.
0 commit comments