From eb2193d90314ca09624786d17df7e9b29b6c160e Mon Sep 17 00:00:00 2001 From: Sami Mazouz Date: Sat, 3 Aug 2024 14:59:41 +0100 Subject: [PATCH] chore: phpunit 11 (php 8.2 minimum requirement) --- .github/workflows/REUSABLE_backend.yml | 2 +- .github/workflows/build-install-packages.yml | 2 +- composer.json | 4 ++-- framework/core/composer.json | 2 +- php-packages/testing/composer.json | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/REUSABLE_backend.yml b/.github/workflows/REUSABLE_backend.yml index 46e823c8e4..0b4a837e38 100644 --- a/.github/workflows/REUSABLE_backend.yml +++ b/.github/workflows/REUSABLE_backend.yml @@ -32,7 +32,7 @@ on: type: string required: false # Keep PHP versions synced with build-install-packages.yml - default: '["8.1", "8.2", "8.3"]' + default: '["8.2", "8.3"]' php_extensions: description: PHP extensions to install. diff --git a/.github/workflows/build-install-packages.yml b/.github/workflows/build-install-packages.yml index fb4b88320e..5ecdd320fc 100644 --- a/.github/workflows/build-install-packages.yml +++ b/.github/workflows/build-install-packages.yml @@ -6,7 +6,7 @@ on: env: VERSION: ${{ github.event.release.tag_name }} - PHP_VERSIONS: '8.1 8.2 8.3' + PHP_VERSIONS: '8.2 8.3' INSTALL_PACKAGES_INPUTS: '{ "flarum_version": "{0}", "php_versions": "{1}" }' jobs: diff --git a/composer.json b/composer.json index b882254e2f..7613855186 100644 --- a/composer.json +++ b/composer.json @@ -105,7 +105,7 @@ "flarum/testing": "self.version" }, "require": { - "php": "^8.1", + "php": "^8.2", "ext-json": "*", "components/font-awesome": "^5.15.0", "composer/composer": "^2.7", @@ -167,7 +167,7 @@ }, "require-dev": { "mockery/mockery": "^1.5", - "phpunit/phpunit": "^10.0", + "phpunit/phpunit": "^11.0", "phpstan/phpstan": "^1.10.0", "larastan/larastan": "^2.7", "symfony/var-dumper": "^6.3" diff --git a/framework/core/composer.json b/framework/core/composer.json index 99847daf72..f273904591 100644 --- a/framework/core/composer.json +++ b/framework/core/composer.json @@ -36,7 +36,7 @@ "chat": "https://flarum.org/chat" }, "require": { - "php": "^8.1", + "php": "^8.2", "components/font-awesome": "^5.15.0", "dflydev/fig-cookies": "^3.0", "doctrine/dbal": "^3.6", diff --git a/php-packages/testing/composer.json b/php-packages/testing/composer.json index b3a871c166..c8e7a885aa 100644 --- a/php-packages/testing/composer.json +++ b/php-packages/testing/composer.json @@ -10,7 +10,7 @@ "require": { "ext-json": "*", "mockery/mockery": "^1.5", - "phpunit/phpunit": "^10.0" + "phpunit/phpunit": "^11.0" }, "require-dev": { "flarum/core": "*@dev"