From 11d03c58b197bc41300bad9d06ad19a63d1c9280 Mon Sep 17 00:00:00 2001 From: Ivan Voskoboinyk Date: Mon, 4 Aug 2025 13:41:42 +0200 Subject: [PATCH 1/2] Auto-download composer.phar in the makefile --- .gitignore | 1 + Makefile | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 3a9875b..6ee3b99 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /vendor/ composer.lock +composer.phar \ No newline at end of file diff --git a/Makefile b/Makefile index 3ab49c0..4f33df0 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,12 @@ tests: vendor php -d zend.assertions=1 -d assert.exception=1 vendor/bin/peridot ./specs -vendor: composer.json composer.lock - composer install +vendor: composer.json composer.phar + php composer.phar install touch vendor + +composer.phar: + php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" + 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); }" + php composer-setup.php + php -r "unlink('composer-setup.php');" \ No newline at end of file From d2a423d6074b2f1fa8477bc253e0b0580592ee86 Mon Sep 17 00:00:00 2001 From: Ivan Voskoboinyk Date: Mon, 4 Aug 2025 13:44:15 +0200 Subject: [PATCH 2/2] Add more versions of PHP to the test matrix --- .github/workflows/test.yml | 2 +- composer.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e20929f..4a39a96 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,7 +6,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - php: [ '7.1', '7.2', '7.3', '7.4', '8.0' ] + php: [ '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ] steps: - uses: actions/checkout@master diff --git a/composer.json b/composer.json index 9706fc9..a9b48c1 100644 --- a/composer.json +++ b/composer.json @@ -9,8 +9,8 @@ "auto-wiring" ], "require": { - "php": ">=7.1", - "psr/container": "^1.0", + "php": "^7.1|^8.0", + "psr/container": "^1.0|^2.0", "technically/null-container": "^1.0", "technically/callable-reflection": "^0.4.0" },