From ce5e7b546fb1bbde0a4f1888d17832b1a73a1075 Mon Sep 17 00:00:00 2001 From: Zhineng Li Date: Wed, 21 Jan 2026 16:04:08 +0800 Subject: support php 8.2 --- composer.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'composer.json') diff --git a/composer.json b/composer.json index 687bc52..1538cf9 100644 --- a/composer.json +++ b/composer.json @@ -3,7 +3,7 @@ "description": "China region library for PHP.", "type": "library", "require": { - "php": "^8.3" + "php": "^8.2" }, "license": "MIT", "autoload": { @@ -24,11 +24,13 @@ ], "require-dev": { "symfony/var-exporter": "^7.2", - "phpunit/phpunit": "^12" + "phpunit/phpunit": "^11.4|^12.0" }, "scripts": { "test": "phpunit", "matrix": [ + "COMPOSER_FLAGS=--prefer-lowest docker compose run --rm php82", + "COMPOSER_FLAGS=--prefer-stable docker compose run --rm php82", "COMPOSER_FLAGS=--prefer-lowest docker compose run --rm php83", "COMPOSER_FLAGS=--prefer-stable docker compose run --rm php83", "COMPOSER_FLAGS=--prefer-lowest docker compose run --rm php84", -- cgit v1.2.3