Skip to content

Commit b76c1bd

Browse files
authored
Merge pull request #30 from magento-trigger/add-support-php-8-1-in-composer
Add support php 8.1 to `magento/semver`
2 parents c472e08 + 41307fc commit b76c1bd

File tree

5 files changed

+266
-180
lines changed

5 files changed

+266
-180
lines changed

.github/workflows/php.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
php-version:
17-
- "7.3"
1817
- "7.4"
1918
- "8.0"
19+
- "8.1"
2020
dependencies:
2121
- "lowest"
2222
- "highest"
@@ -41,6 +41,12 @@ jobs:
4141
dependency-versions: "${{ matrix.dependencies }}"
4242
composer-options: "${{ matrix.composer-options }}"
4343

44+
# Exclude E_DEPRECATED on PHP 8.1.
45+
# Remove once https://github.com/tomzx/php-semver-checker/pull/112 fixed
46+
- name: Sets error reporting
47+
if: contains(${{ matrix.php-version }}, '8.1')
48+
run: echo "error_reporting=24575" >> $GITHUB_ENV
49+
4450
- name: Run unit tests suite
4551
run: vendor/bin/phpunit --configuration tests/Unit/phpunit.xml.dist
4652

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88
],
99
"bin": ["bin/svc"],
1010
"require": {
11-
"php": "~7.3.0||~7.4.0||~8.0.0",
11+
"php": "~7.4.0||~8.0.0||~8.1.0",
1212
"ext-json": "*",
13-
"laminas/laminas-dependency-plugin": "^2.1.0",
14-
"laminas/laminas-stdlib": "~3.5.0",
13+
"laminas/laminas-dependency-plugin": "^2.2.0",
14+
"laminas/laminas-stdlib": "~3.6.0",
1515
"nikic/php-parser": "~4.12.0",
1616
"phpstan/phpdoc-parser": "^0.5.5",
1717
"sabre/xml": "~2.2.3",
1818
"symfony/console": "~4.1.0||~4.4.0",
19-
"tomzx/php-semver-checker": "^0.14.0",
19+
"tomzx/php-semver-checker": "^0.15.0",
2020
"wikimedia/less.php": "~3.1.0"
2121
},
2222
"require-dev": {

0 commit comments

Comments
 (0)