From e82929f5121cc3b4c61ac9094845edfa3868cf7f Mon Sep 17 00:00:00 2001 From: Clemens Schwaighofer Date: Fri, 18 Oct 2024 09:37:18 +0900 Subject: [PATCH] core composer install update --- composer.json | 5 ++++- phpstan.neon | 13 ++++++++++--- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index ddce4867..3f2c5950 100644 --- a/composer.json +++ b/composer.json @@ -10,7 +10,10 @@ "phpstan/phpstan": "^1.12", "phan/phan": "^5.4", "phpstan/extension-installer": "^1.4", - "phpstan/phpstan-strict-rules": "^1.6" + "phpstan/phpstan-strict-rules": "^1.6", + "phpunit/phpunit": "^9", + "phpstan/phpstan-deprecation-rules": "^1.2", + "yamadashy/phpstan-friendly-formatter": "^1.1" }, "config": { "allow-plugins": { diff --git a/phpstan.neon b/phpstan.neon index 1e81ac4b..d9c3806c 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -1,9 +1,16 @@ # PHP Stan Config includes: - phpstan-conditional.php + - ./vendor/yamadashy/phpstan-friendly-formatter/extension.neon parameters: tmpDir: %currentWorkingDirectory%/tmp/phpstan-corelibs + errorFormat: friendly + friendly: + lineBefore: 5 + lineAfter: 3 level: 8 # max is now 9 + # strictRules: + # allRules: true checkMissingCallableSignature: true treatPhpDocTypesAsCertain: false paths: @@ -53,6 +60,6 @@ parameters: # paths: # - ... # - ... - #- - # message: "#^Call to deprecated method #" - # path: www/admin/class_test*.php + - + message: "#^Call to deprecated method #" + path: www/admin/class_test*.php