diff --git a/Makefile b/Makefile index 4ad0ad6..1b9191f 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ phpmd-ci: prepare-ci ## Run PHP Mess Detector (CI) PHPMD_FORMAT="github" $(MAKE) phpmd .PHONY: phpmd phpmd-ci -PHPSTAN_LEVEL ?= max +PHPSTAN_LEVEL ?= 9 phpstan: ## Run PHPStan vendor/bin/phpstan analyse --configuration=phpstan.neon --memory-limit=-1 --level=$(PHPSTAN_LEVEL) $(EXTRA_ARGS) src tests phpstan-ci: prepare-ci ## Run PHPStan (CI) diff --git a/composer.json b/composer.json index 1c58b7d..2ad8706 100644 --- a/composer.json +++ b/composer.json @@ -4,15 +4,16 @@ "type": "phpcodesniffer-standard", "license": "MIT", "require": { - "php": "^8.3", - "squizlabs/php_codesniffer": "^3.8", - "slevomat/coding-standard": "^8.14", + "php": "^8.4", + "squizlabs/php_codesniffer": "^4.0", + "slevomat/coding-standard": "^8.24", "phpmd/phpmd": "^2.15", - "phpstan/phpstan": "^1.10", - "phpstan/phpstan-phpunit": "^1.3", - "jangregor/phpstan-prophecy": "^1.0", - "phpspec/prophecy-phpunit": "^2.1", - "phpunit/phpunit": "^10.5 || ^11.0" + "phpstan/phpstan": "^2.1", + "phpstan/phpstan-phpunit": "^2.0", + "phpstan/phpstan-symfony": "^2.0", + "jangregor/phpstan-prophecy": "^2.2", + "phpspec/prophecy-phpunit": "^2.4", + "phpunit/phpunit": "^11.0 || ^12.4" }, "require-dev": { "roave/security-advisories": "dev-latest" diff --git a/lib/phpcs/rules/base.xml b/lib/phpcs/rules/base.xml index 0e999cb..cf41548 100644 --- a/lib/phpcs/rules/base.xml +++ b/lib/phpcs/rules/base.xml @@ -26,27 +26,26 @@ - + + + + + + + + + + + + + + + + + + + + diff --git a/lib/phpcs/rules/slevomat.xml b/lib/phpcs/rules/slevomat.xml index 7096ec5..bfead2a 100644 --- a/lib/phpcs/rules/slevomat.xml +++ b/lib/phpcs/rules/slevomat.xml @@ -235,10 +235,10 @@ - + - +