Skip to content

Commit 16297ab

Browse files
authored
Merge pull request #1 from technically-php/update/php-versions
Update - Add newer PHP versions
2 parents 22a1bce + d2a423d commit 16297ab

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
runs-on: ubuntu-latest
77
strategy:
88
matrix:
9-
php: [ '7.1', '7.2', '7.3', '7.4', '8.0' ]
9+
php: [ '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ]
1010

1111
steps:
1212
- uses: actions/checkout@master

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
/vendor/
22
composer.lock
3+
composer.phar

Makefile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
tests: vendor
44
php -d zend.assertions=1 -d assert.exception=1 vendor/bin/peridot ./specs
55

6-
vendor: composer.json composer.lock
7-
composer install
6+
vendor: composer.json composer.phar
7+
php composer.phar install
88
touch vendor
9+
10+
composer.phar:
11+
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
12+
php -r "if (hash_file('sha384', 'composer-setup.php') === 'dac665fdc30fdd8ec78b38b9800061b4150413ff2e3b6f88543c636f7cd84f6db9189d43a81e5503cda447da73c7e5b6') { echo 'Installer verified'.PHP_EOL; } else { echo 'Installer corrupt'.PHP_EOL; unlink('composer-setup.php'); exit(1); }"
13+
php composer-setup.php
14+
php -r "unlink('composer-setup.php');"

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"auto-wiring"
1010
],
1111
"require": {
12-
"php": ">=7.1",
13-
"psr/container": "^1.0",
12+
"php": "^7.1|^8.0",
13+
"psr/container": "^1.0|^2.0",
1414
"technically/null-container": "^1.0",
1515
"technically/callable-reflection": "^0.4.0"
1616
},

0 commit comments

Comments
 (0)