From 2340550b28d377304a6d9d7c5350f0b3aaf295d1 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Mon, 12 Jan 2026 14:34:56 +0700 Subject: [PATCH 1/2] Allow webmozart/assert version ^2.1 --- .github/workflows/ci_build.yml | 13 +++++++++---- composer.json | 2 +- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci_build.yml b/.github/workflows/ci_build.yml index 1c836fc..b3f84d6 100644 --- a/.github/workflows/ci_build.yml +++ b/.github/workflows/ci_build.yml @@ -8,12 +8,13 @@ on: jobs: build: - name: PHP ${{ matrix.php-versions }} + name: PHP ${{ matrix.php-versions }} (${{ matrix.deps }}) runs-on: ubuntu-latest strategy: fail-fast: false matrix: - php-versions: ['8.2', '8.3', '8.4'] + php-versions: ['8.2', '8.3', '8.4', '8.5'] + deps: ['latest', 'lowest'] steps: - name: Setup PHP Action uses: shivammathur/setup-php@v2 @@ -24,8 +25,12 @@ jobs: - name: Checkout uses: actions/checkout@v2 - run: "composer validate" - - name: "Install dependencies" - run: "composer install --prefer-dist" + - name: "Install dependencies (latest)" + if: matrix.deps == 'latest' + run: "composer install --no-interaction --no-progress --prefer-dist" + - name: "Install dependencies (lowest)" + if: matrix.deps == 'lowest' + run: "composer update --no-interaction --no-progress --prefer-dist --prefer-lowest --prefer-stable" - name: "CS Check" run: "composer cs-check" - name: "Code analyze" diff --git a/composer.json b/composer.json index 638f1a5..ffe6990 100644 --- a/composer.json +++ b/composer.json @@ -25,7 +25,7 @@ ], "require": { "php": "^8.2", - "webmozart/assert": "^1.11" + "webmozart/assert": "^1.11 || ^2.1" }, "conflict": { "mezzio/mezzio": "<3.0", From 85a547c34aae0d55f94ec17e6d9023db7d2f8951 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Mon, 12 Jan 2026 14:36:30 +0700 Subject: [PATCH 2/2] Allow webmozart/assert version ^2.1 --- .github/workflows/ci_build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci_build.yml b/.github/workflows/ci_build.yml index b3f84d6..30827c6 100644 --- a/.github/workflows/ci_build.yml +++ b/.github/workflows/ci_build.yml @@ -13,7 +13,7 @@ jobs: strategy: fail-fast: false matrix: - php-versions: ['8.2', '8.3', '8.4', '8.5'] + php-versions: ['8.2', '8.3', '8.4'] deps: ['latest', 'lowest'] steps: - name: Setup PHP Action