This repository was archived by the owner on Mar 3, 2025. It is now read-only.
File tree 6 files changed +20
-16
lines changed
6 files changed +20
-16
lines changed Original file line number Diff line number Diff line change 1
1
name : Check & fix styling
2
2
3
- on : [push]
3
+ on : [push, pull_request ]
4
4
5
5
jobs :
6
6
php-cs-fixer :
9
9
steps :
10
10
- name : Checkout code
11
11
uses : actions/checkout@v2
12
- with :
13
- ref : ${{ github.head_ref }}
14
12
15
13
- name : Run PHP CS Fixer
16
14
uses : docker://oskarstark/php-cs-fixer-ga
17
15
with :
18
- args : --config=.php_cs .dist --allow-risky=yes
16
+ args : --config=.php-cs-fixer .dist.php --allow-risky=yes
19
17
20
18
- name : Commit changes
21
19
uses : stefanzweifel/git-auto-commit-action@v4
Original file line number Diff line number Diff line change 1
1
name : Psalm
2
2
3
3
on :
4
+ pull_request :
5
+ paths :
6
+ - ' **.php'
7
+ - ' psalm.xml.dist'
4
8
push :
5
9
paths :
6
10
- ' **.php'
Original file line number Diff line number Diff line change @@ -13,12 +13,14 @@ jobs:
13
13
fail-fast : true
14
14
matrix :
15
15
os : [ubuntu-latest, windows-latest]
16
- php : [8.0]
17
- laravel : [8.*]
16
+ php : [8.0, 8.1 ]
17
+ laravel : [8.*, 9.* ]
18
18
stability : [prefer-lowest, prefer-stable]
19
19
include :
20
20
- laravel : 8.*
21
- testbench : ^6.6
21
+ testbench : ^6.24
22
+ - laravel : 9.*
23
+ testbench : ^7.0
22
24
23
25
name : P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
24
26
Original file line number Diff line number Diff line change 1
- .php_cs
2
- .php_cs .cache
1
+ .php-cs-fixer.php
2
+ .php-cs-fixer .cache
3
3
.phpunit.result.cache
4
4
build
5
5
composer.lock
Original file line number Diff line number Diff line change 13
13
->ignoreDotFiles (true )
14
14
->ignoreVCS (true );
15
15
16
- return PhpCsFixer \Config:: create ( )
16
+ return ( new PhpCsFixer \Config () )
17
17
->setRules ([
18
18
'@PSR2 ' => true ,
19
19
'array_syntax ' => ['syntax ' => 'short ' ],
20
- 'ordered_imports ' => ['sortAlgorithm ' => 'alpha ' ],
20
+ 'ordered_imports ' => ['sort_algorithm ' => 'alpha ' ],
21
21
'no_unused_imports ' => true ,
22
22
'not_operator_with_successor_space ' => true ,
23
- 'trailing_comma_in_multiline_array ' => true ,
23
+ 'trailing_comma_in_multiline ' => true ,
24
24
'phpdoc_scalar ' => true ,
25
25
'unary_operator_spaces ' => true ,
26
26
'binary_operator_spaces ' => true ,
31
31
'phpdoc_var_without_name ' => true ,
32
32
'class_attributes_separation ' => [
33
33
'elements ' => [
34
- 'method ' ,
34
+ 'method ' => ' one ' ,
35
35
],
36
36
],
37
37
'method_argument_space ' => [
Original file line number Diff line number Diff line change 23
23
],
24
24
"require" : {
25
25
"php" : " ^8.0" ,
26
- "illuminate/contracts" : " ^8.0" ,
26
+ "illuminate/contracts" : " ^8.0|^9.0 " ,
27
27
"spatie/data-transfer-object" : " ^3.0" ,
28
28
"thecodingmachine/safe" : " ^1.3"
29
29
},
30
30
"require-dev" : {
31
31
"brianium/paratest" : " ^6.2" ,
32
32
"mockery/mockery" : " ^1.4" ,
33
- "nunomaduro/collision" : " ^5.3" ,
34
- "orchestra/testbench" : " ^6.15" ,
33
+ "nunomaduro/collision" : " ^5.3|^6.0 " ,
34
+ "orchestra/testbench" : " ^6.15|^7.0 " ,
35
35
"phpunit/phpunit" : " ^9.5" ,
36
36
"vimeo/psalm" : " ^4.4"
37
37
},
You can’t perform that action at this time.
0 commit comments