diff --git a/.github/workflows/benchmarks.yml b/.github/workflows/benchmarks.yml index 88cef877..a5936338 100644 --- a/.github/workflows/benchmarks.yml +++ b/.github/workflows/benchmarks.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: php-version: - - "8.3" + - "8.4" operating-system: - "ubuntu-latest" @@ -28,7 +28,10 @@ jobs: ini-values: memory_limit=-1 tools: composer:v2, cs2pr extensions: bcmath, mbstring, intl, sodium, json - + - name: "Ignore PHP platform requirements" + if: matrix.php-versions == '8.4' + run: | + export COMPOSER_IGNORE_PLATFORM_REQ=php+ - name: "caching dependencies" uses: "actions/cache@v4" with: diff --git a/.github/workflows/code-coverage.yml b/.github/workflows/code-coverage.yml index c0484ea7..07ecb4d4 100644 --- a/.github/workflows/code-coverage.yml +++ b/.github/workflows/code-coverage.yml @@ -17,11 +17,15 @@ jobs: - name: "installing PHP" uses: "shivammathur/setup-php@v2" with: - php-version: "8.3" + php-version: "8.4" ini-values: memory_limit=-1 tools: composer:v2, cs2pr extensions: bcmath, mbstring, intl, sodium, json + - name: "Ignore PHP platform requirements" + run: | + export COMPOSER_IGNORE_PLATFORM_REQ=php+ + - name: "installing dependencies" run: | make install -j10 -O diff --git a/.github/workflows/coding-standards.yml b/.github/workflows/coding-standards.yml index 835c9bbf..c5a44c48 100644 --- a/.github/workflows/coding-standards.yml +++ b/.github/workflows/coding-standards.yml @@ -15,11 +15,15 @@ jobs: - name: "installing PHP" uses: "shivammathur/setup-php@v2" with: - php-version: "8.3" + php-version: "8.4" ini-values: memory_limit=-1 tools: composer:v2, cs2pr extensions: bcmath, mbstring, intl, sodium, json + - name: "Ignore PHP platform requirements" + run: | + export COMPOSER_IGNORE_PLATFORM_REQ=php+ + - name: "installing dependencies" run: | make install -j10 -O diff --git a/.github/workflows/documentation-check.yml b/.github/workflows/documentation-check.yml index d583dbc2..655dcdc0 100644 --- a/.github/workflows/documentation-check.yml +++ b/.github/workflows/documentation-check.yml @@ -15,11 +15,15 @@ jobs: - name: "installing PHP" uses: "shivammathur/setup-php@v2" with: - php-version: "8.3" + php-version: "8.4" ini-values: memory_limit=-1 tools: composer:v2, cs2pr extensions: bcmath, mbstring, intl, sodium, json + - name: "Ignore PHP platform requirements" + run: | + export COMPOSER_IGNORE_PLATFORM_REQ=php+ + - name: "installing dependencies" run: | make install -j10 -O diff --git a/.github/workflows/mutation-tests.yml b/.github/workflows/mutation-tests.yml index 7d7d0f8b..18ca37c9 100644 --- a/.github/workflows/mutation-tests.yml +++ b/.github/workflows/mutation-tests.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: php-version: - - "8.3" + - "8.4" operating-system: - "ubuntu-latest" @@ -38,6 +38,10 @@ jobs: key: "php-${{ matrix.php-version }}" restore-keys: "php-${{ matrix.php-version }}" + - name: "Ignore PHP platform requirements" + run: | + export COMPOSER_IGNORE_PLATFORM_REQ=php+ + - name: "installing dependencies" run: | make install -j10 diff --git a/.github/workflows/preload-check.yml b/.github/workflows/preload-check.yml index bf3c6e06..8cea21ac 100644 --- a/.github/workflows/preload-check.yml +++ b/.github/workflows/preload-check.yml @@ -15,7 +15,7 @@ jobs: - name: "installing PHP" uses: "shivammathur/setup-php@v2" with: - php-version: "8.3" + php-version: "8.4" ini-values: memory_limit=-1 tools: composer:v2, cs2pr extensions: bcmath, mbstring, intl, sodium, json diff --git a/.github/workflows/security-analysis.yml b/.github/workflows/security-analysis.yml index 2fc53704..8d9831a3 100644 --- a/.github/workflows/security-analysis.yml +++ b/.github/workflows/security-analysis.yml @@ -15,11 +15,15 @@ jobs: - name: "installing PHP" uses: "shivammathur/setup-php@v2" with: - php-version: "8.3" + php-version: "8.4" ini-values: memory_limit=-1 tools: composer:v2, cs2pr extensions: bcmath, mbstring, intl, sodium, json + - name: "Ignore PHP platform requirements" + run: | + export COMPOSER_IGNORE_PLATFORM_REQ=php+ + - name: "installing dependencies" run: | make install -j10 -O diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index 56a18f02..34d33c34 100644 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -17,11 +17,15 @@ jobs: - name: "installing PHP" uses: "shivammathur/setup-php@v2" with: - php-version: "8.3" + php-version: "8.4" ini-values: memory_limit=-1 tools: composer:v2, cs2pr extensions: bcmath, mbstring, intl, sodium, json + - name: "Ignore PHP platform requirements" + run: | + export COMPOSER_IGNORE_PLATFORM_REQ=php+ + - name: "installing dependencies" run: | make install -j10 -O diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index cfdb3430..cf425011 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -15,6 +15,7 @@ jobs: php-version: - "8.2" - "8.3" + - "8.4" operating-system: - "macos-latest" - "ubuntu-latest" @@ -41,6 +42,11 @@ jobs: key: "php-${{ matrix.php-version }}" restore-keys: "php-${{ matrix.php-version }}" + - name: "Ignore PHP platform requirements" + if: matrix.php-versions == '8.4' + run: | + export COMPOSER_IGNORE_PLATFORM_REQ=php+ + - name: "installing dependencies" run: | make install -j10 diff --git a/Makefile b/Makefile index d619b7a4..8e0e50f7 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ help: @awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_\-\.]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST) install: ## install all dependencies for a development environment - composer install + COMPOSER_IGNORE_PLATFORM_REQ=php+ composer install coding-standard-fix: ## apply automated coding standard fixes PHP_CS_FIXER_IGNORE_ENV=1 ./vendor/bin/php-cs-fixer fix --config=config/.php_cs.dist.php diff --git a/composer.json b/composer.json index 6127ff32..392ca0d7 100644 --- a/composer.json +++ b/composer.json @@ -10,7 +10,7 @@ } ], "require": { - "php": "~8.2.0 || ~8.3.0", + "php": "~8.2.0 || ~8.3.0 || ~8.4.0", "ext-bcmath": "*", "ext-json": "*", "ext-mbstring": "*", diff --git a/composer.lock b/composer.lock index a41893b1..a3d30aef 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "97465cc59bebf30479efdae3608e548a", + "content-hash": "96e8a3659280b296c7389255024734c4", "packages": [ { "name": "revolt/event-loop", @@ -7403,17 +7403,17 @@ ], "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, "platform": { - "php": "~8.2.0 || ~8.3.0", + "php": "~8.2.0 || ~8.3.0 || ~8.4.0", "ext-bcmath": "*", "ext-json": "*", "ext-mbstring": "*", "ext-sodium": "*", "ext-intl": "*" }, - "platform-dev": [], + "platform-dev": {}, "plugin-api-version": "2.6.0" }