File tree 2 files changed +13
-10
lines changed
2 files changed +13
-10
lines changed Original file line number Diff line number Diff line change 8
8
strategy :
9
9
matrix :
10
10
php-version :
11
+ - " 7.1"
12
+ - " 7.2"
13
+ - " 7.3"
11
14
- " 7.4"
12
15
- " 8.0"
13
16
- " 8.1"
@@ -76,11 +79,14 @@ jobs:
76
79
key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
77
80
restore-keys : ${{ runner.os }}-composer-
78
81
79
- - name : Install dependencies
80
- run : composer install --no-progress --prefer-dist --optimize-autoloader
82
+ - name : Composer Install
83
+ run : composer global require friendsofphp/php-cs-fixer
84
+
85
+ - name : Add environment path
86
+ run : export PATH="$PATH:$HOME/.composer/vendor/bin"
81
87
82
88
- name : Code style with PHP-CS-Fixer
83
- run : ./vendor/bin/ php-cs-fixer fix --dry-run --show-progress=none --using-cache=no -v --format=checkstyle | cs2pr
89
+ run : php-cs-fixer fix --dry-run --diff
84
90
85
91
phpcs :
86
92
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 58
58
"fix" : " Fixes issues found by PHP-CS"
59
59
},
60
60
"require" : {
61
- "php" : " ^7.4 || ^8.0" ,
61
+ "php" : " ^7.1| ^8.0" ,
62
62
"ext-dom" : " *" ,
63
63
"ext-json" : " *" ,
64
64
"ext-xml" : " *" ,
65
- "laminas/laminas-escaper" : " ^2.10 "
65
+ "laminas/laminas-escaper" : " >=2.6 "
66
66
},
67
67
"require-dev" : {
68
68
"ext-zip" : " *" ,
69
69
"ext-gd" : " *" ,
70
70
"ext-libxml" : " *" ,
71
71
"dompdf/dompdf" : " ^2.0" ,
72
- "friendsofphp/php-cs-fixer" : " ^3.11" ,
73
72
"mpdf/mpdf" : " ^8.1" ,
74
73
"php-coveralls/php-coveralls" : " ^2.5" ,
75
- "phploc/phploc" : " ^7.0" ,
76
74
"phpmd/phpmd" : " ^2.13" ,
77
- "phpunit/phpunit" : " ^9.5" ,
78
- "squizlabs/php_codesniffer" : " ^3.7" ,
75
+ "phpunit/phpunit" : " >=7.0" ,
79
76
"tecnickcom/tcpdf" : " ^6.5" ,
80
- "symfony/process" : " ^5 .4"
77
+ "symfony/process" : " ^4 .4"
81
78
},
82
79
"suggest" : {
83
80
"ext-zip" : " Allows writing OOXML and ODF" ,
You can’t perform that action at this time.
0 commit comments