From 167127f36195bc7c95840ca6de7b5484a79f2785 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: 2024年12月21日 06:14:57 +0000 Subject: [PATCH 1/2] Update dependency phpunit/phpunit to ^11.5.2 | datasource | package | from | to | | ---------- | --------------- | ------ | ------ | | packagist | phpunit/phpunit | 11.5.1 | 11.5.2 | --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 9f5c65f..c89244b 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,7 @@ "phpstan/phpstan": "^2", "phpstan/phpstan-phpunit": "^2", "phpstan/phpstan-strict-rules": "^2", - "phpunit/phpunit": "^11.5.1", + "phpunit/phpunit": "^11.5.2", "slam/php-cs-fixer-extensions": "^3.12", "symfony/console": "^7.2.1" }, From b02e78d2ac194be74dd472aa40a1e7acfa4940d2 Mon Sep 17 00:00:00 2001 From: Filippo Tessarotto Date: 2025年1月10日 10:06:17 +0100 Subject: [PATCH 2/2] PHPStan fix --- Makefile | 2 +- composer.json | 6 +++--- phpstan-baseline.neon | 6 ------ 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index b959b04..10e7fe1 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ ifdef CI DOCKER_PHP_EXEC := else - DOCKER_PHP_EXEC := docker compose run --rm php + DOCKER_PHP_EXEC := docker compose run --rm --env PHP_CS_FIXER_IGNORE_ENV=1 php endif all: csfix static-analysis test diff --git a/composer.json b/composer.json index c89244b..16ed953 100644 --- a/composer.json +++ b/composer.json @@ -14,9 +14,9 @@ "php": "~8.3.0 || ~8.4.0" }, "require-dev": { - "phpstan/phpstan": "^2", - "phpstan/phpstan-phpunit": "^2", - "phpstan/phpstan-strict-rules": "^2", + "phpstan/phpstan": "^2.1.1", + "phpstan/phpstan-phpunit": "^2.0.3", + "phpstan/phpstan-strict-rules": "^2.0.1", "phpunit/phpunit": "^11.5.2", "slam/php-cs-fixer-extensions": "^3.12", "symfony/console": "^7.2.1" diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 4818c52..403c999 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -6,12 +6,6 @@ parameters: count: 1 path: lib/ErrorHandler.php - - - message: '#^Parameter \#2 \$array of function implode expects array\, mixed given\.$#' - identifier: argument.type - count: 1 - path: lib/ErrorHandler.php - - message: '#^Parameter \#2 \$array of function implode expects array\|null, mixed given\.$#' identifier: argument.type

AltStyle によって変換されたページ (->オリジナル) /