Skip to content

Commit b352612

Browse files
drpayyneandrewbess
authored andcommitted
Updated composer files to support php:^8.0
- updated composer dependencies - fixed build yaml file
1 parent 9ef11a4 commit b352612

File tree

7 files changed

+1011
-420
lines changed

7 files changed

+1011
-420
lines changed

.github/workflows/php.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ on:
99
jobs:
1010
build:
1111

12-
runs-on: ubuntu-latest
12+
runs-on: ubuntu-18.04
1313

1414
steps:
1515
- uses: actions/checkout@v2
1616

1717
- name: Update PHP
18-
run: sudo update-alternatives --set php /usr/bin/php7.2
18+
run: sudo update-alternatives --set php /usr/bin/php7.3
1919

2020
- name: Validate composer
2121
run: composer validate

composer.json

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,28 @@
88
],
99
"bin": ["bin/svc"],
1010
"require": {
11-
"php": "~7.2.29||~7.3.0||~7.4.0",
11+
"php": "^7.3||^8.0",
1212
"ext-json": "*",
13-
"phpstan/phpdoc-parser": "^0.3.5",
13+
"laminas/laminas-stdlib": "^3.3",
14+
"nikic/php-parser": "^4.10",
15+
"phpstan/phpdoc-parser": "^0.5",
16+
"sabre/xml": "^2.1",
1417
"symfony/console": "~4.1.0||~4.4.0",
1518
"tomzx/php-semver-checker": "^0.14.0",
16-
"wikimedia/less.php": "~1.8.0",
17-
"zendframework/zend-stdlib": "^3.2.1",
18-
"nikic/php-parser": "~4.4.0||~4.5.0||~4.6.0",
19-
"sabre/xml": "^2.1"
19+
"wikimedia/less.php": "~1.8.0"
2020
},
2121
"require-dev": {
22-
"phpunit/phpunit": "^6.5.0",
2322
"ext-dom": "*",
23+
"phpunit/phpunit": "~9.5.0",
2424
"squizlabs/php_codesniffer": "^3.5"
2525
},
2626
"autoload": {
2727
"psr-4": {
2828
"Magento\\SemanticVersionChecker\\": "src/",
2929
"Magento\\SemanticVersionChecker\\Test\\": "tests/"
3030
}
31+
},
32+
"config": {
33+
"sort-packages": true
3134
}
3235
}

0 commit comments

Comments
 (0)