Skip to content

Commit e1ea02b

Browse files
committed
Support for PHP7.1 (min.)
1 parent c467fe0 commit e1ea02b

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ jobs:
88
strategy:
99
matrix:
1010
php-version:
11+
- "7.1"
12+
- "7.2"
13+
- "7.3"
1114
- "7.4"
1215
- "8.0"
1316
- "8.1"
@@ -76,11 +79,14 @@ jobs:
7679
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
7780
restore-keys: ${{ runner.os }}-composer-
7881

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"
8187

8288
- 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
8490

8591
phpcs:
8692
runs-on: ubuntu-latest

composer.json

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,26 +58,23 @@
5858
"fix": "Fixes issues found by PHP-CS"
5959
},
6060
"require": {
61-
"php": "^7.4 || ^8.0",
61+
"php": "^7.1|^8.0",
6262
"ext-dom": "*",
6363
"ext-json": "*",
6464
"ext-xml": "*",
65-
"laminas/laminas-escaper": "^2.10"
65+
"laminas/laminas-escaper": ">=2.6"
6666
},
6767
"require-dev": {
6868
"ext-zip": "*",
6969
"ext-gd": "*",
7070
"ext-libxml": "*",
7171
"dompdf/dompdf": "^2.0",
72-
"friendsofphp/php-cs-fixer": "^3.11",
7372
"mpdf/mpdf": "^8.1",
7473
"php-coveralls/php-coveralls": "^2.5",
75-
"phploc/phploc": "^7.0",
7674
"phpmd/phpmd": "^2.13",
77-
"phpunit/phpunit": "^9.5",
78-
"squizlabs/php_codesniffer": "^3.7",
75+
"phpunit/phpunit": ">=7.0",
7976
"tecnickcom/tcpdf": "^6.5",
80-
"symfony/process": "^5.4"
77+
"symfony/process": "^4.4"
8178
},
8279
"suggest": {
8380
"ext-zip": "Allows writing OOXML and ODF",

0 commit comments

Comments
 (0)