File tree Expand file tree Collapse file tree 5 files changed +24
-8
lines changed Expand file tree Collapse file tree 5 files changed +24
-8
lines changed Original file line number Diff line number Diff line change 13
13
php-version :
14
14
- " 7.3"
15
15
- " 7.4"
16
+ - " 8.0"
16
17
deps :
17
18
- " normal"
18
19
include :
Original file line number Diff line number Diff line change 12
12
matrix :
13
13
php-version :
14
14
- " 7.4"
15
+ - " 8.0"
15
16
16
17
steps :
17
18
- name : " Checkout"
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- $ finder = PhpCsFixer \Finder::create ()
3
+ declare (strict_types=1 );
4
+
5
+ $ config = new PhpCsFixer \Config ();
6
+
7
+ $ finder = $ config ->getFinder ()
4
8
->exclude (
5
9
[
6
10
'vendor ' ,
7
11
]
8
12
)
9
13
->in (__DIR__ );
10
14
11
- return PhpCsFixer \Config::create ()
15
+ return $ config
16
+ ->registerCustomFixers ([])
12
17
->setRules (
13
18
[
14
19
'@Symfony ' => true ,
21
26
'phpdoc_var_without_name ' => false ,
22
27
'phpdoc_to_comment ' => false ,
23
28
'single_line_throw ' => false ,
29
+ 'modernize_types_casting ' => true ,
30
+ 'function_declaration ' => false ,
31
+ 'ordered_imports ' => [
32
+ 'imports_order ' => [
33
+ 'class ' ,
34
+ 'function ' ,
35
+ 'const ' ,
36
+ ],
37
+ 'sort_algorithm ' => 'alpha ' ,
38
+ ],
24
39
]
25
- )
26
- ->setFinder ($ finder );
40
+ );
Original file line number Diff line number Diff line change 7
7
"php" : " >=7.3" ,
8
8
"ext-soap" : " *" ,
9
9
"marc-mabe/php-enum" : " ^3.0|^4.0" ,
10
- "symfony/http-kernel" : " ^4.4" ,
10
+ "symfony/http-kernel" : " ^4.4 || ^5.0 " ,
11
11
"webmozart/assert" : " ^1.3"
12
12
},
13
13
"require-dev" : {
14
14
"roave/security-advisories" : " dev-master" ,
15
15
"phpunit/phpunit" : " ^8.3" ,
16
16
"symfony/phpunit-bridge" : " ^5.0" ,
17
- "phpro/grumphp" : " ^0.20 " ,
18
- "friendsofphp/php-cs-fixer" : " ^2.16 " ,
17
+ "phpro/grumphp" : " ^1.4.0 " ,
18
+ "friendsofphp/php-cs-fixer" : " ^2.19 " ,
19
19
"phpstan/phpstan" : " ^0.12.32" ,
20
20
"phpstan/phpstan-webmozart-assert" : " ^0.12.2"
21
21
},
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ grumphp:
18
18
phpcsfixer :
19
19
allow_risky : true
20
20
cache_file : ~
21
- config : ' ./.php_cs '
21
+ config : ' ./.php-cs-fixer.php '
22
22
using_cache : true
23
23
verbose : true
24
24
phpstan :
You can’t perform that action at this time.
0 commit comments