From 0dd8e7969d03dc82d00d0c0c78b41641e2a79de5 Mon Sep 17 00:00:00 2001 From: Simon Podlipsky Date: Mon, 6 Dec 2021 09:28:11 +0100 Subject: [PATCH 1/4] Support only PHP 8.1 --- .gitignore | 2 +- composer.json | 8 ++++++-- phpunit.xml.dist | 11 ++++++----- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index 8b39b93..59a6205 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,4 @@ /.phpunit.result.cache /vendor /composer.lock - +.phpunit.result.cache diff --git a/composer.json b/composer.json index f2ba4c8..68210fc 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ } ], "require": { - "php": ">=7.3 || >=8.0", + "php": "~8.1.0", "ext-json": "*" }, "autoload": { @@ -21,7 +21,11 @@ "scripts": { "test": "vendor/bin/phpunit" }, + "scripts": { + "test": "vendor/bin/phpunit" + }, "require-dev": { - "phpunit/phpunit": ">=8.0 || >=9.0" + "phpunit/phpunit": "^9.5.10", + "doctrine/instantiator": "^1.0" } } diff --git a/phpunit.xml.dist b/phpunit.xml.dist index f00529b..557bc51 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,12 +1,13 @@ + + + ./src + + - ./tests + ./tests - - - - From d429f36d023c5bf674451c468fd98148cd8cc9eb Mon Sep 17 00:00:00 2001 From: Simon Podlipsky Date: Thu, 23 Feb 2023 15:18:10 +0100 Subject: [PATCH 2/4] chore: support php 8.2 --- .github/workflows/ci.yml | 0 composer.json | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..e69de29 diff --git a/composer.json b/composer.json index 68210fc..c3a5dfe 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ } ], "require": { - "php": "~8.1.0", + "php": "~8.1.0 || ~8.2.0", "ext-json": "*" }, "autoload": { From b3e4c002357063df8330229f173cdda23348dfe5 Mon Sep 17 00:00:00 2001 From: Simon Podlipsky Date: Wed, 14 Feb 2024 11:25:42 +0100 Subject: [PATCH 3/4] feat: allow php 8.3, drop php 8.1 --- .github/workflows/php.yml | 36 ++++++++++++++++-------------------- composer.json | 2 +- 2 files changed, 17 insertions(+), 21 deletions(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 6d74ab9..feb9ff0 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -3,30 +3,26 @@ name: PHP Composer on: - [push] + [ push ] jobs: - build: + build: - runs-on: ubuntu-latest + runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 + steps: + - uses: actions/checkout@v2 - - name: Validate composer.json and composer.lock - run: composer validate --strict + - name: "Install PHP" + uses: "shivammathur/setup-php@v2" + with: + php-version: "${{ matrix.php-version }}" + ini-values: "zend.assertions=1" - - name: Cache Composer packages - id: composer-cache - uses: actions/cache@v2 - with: - path: vendor - key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} - restore-keys: | - ${{ runner.os }}-php- + - name: "Install dependencies with Composer" + uses: "ramsey/composer-install@v2" + with: + dependency-versions: "${{ matrix.dependencies }}" - - name: Install dependencies - run: composer install --prefer-dist --no-progress - - - name: Run test suite - run: composer run-script test + - name: Run test suite + run: composer run-script test diff --git a/composer.json b/composer.json index c3a5dfe..dd9e408 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ } ], "require": { - "php": "~8.1.0 || ~8.2.0", + "php": "~8.2.0 || ~8.3.0", "ext-json": "*" }, "autoload": { From 0ea8ee74f4d46a010601cda2f3ed135feda9689a Mon Sep 17 00:00:00 2001 From: Simon Podlipsky Date: Sun, 24 Nov 2024 10:28:55 +0100 Subject: [PATCH 4/4] feat: support php 8.4 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index dd9e408..2acba37 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ } ], "require": { - "php": "~8.2.0 || ~8.3.0", + "php": "~8.2.0 || ~8.3.0 || ~8.4.0", "ext-json": "*" }, "autoload": {