PHPStan 2.0

And update to PHP 8.1+
This commit is contained in:
Alexandre Alapetite 2025-01-11 14:00:47 +01:00
parent d6697d49c5
commit 6aa8814326
No known key found for this signature in database
GPG key ID: A24378C38E812B23
13 changed files with 297 additions and 284 deletions

View file

@ -17,7 +17,7 @@
"WebSub"
],
"require": {
"php": ">=7.4",
"php": ">=8.1",
"ext-ctype": "*",
"ext-curl": "*",
"ext-dom": "*",
@ -45,28 +45,26 @@
"ext-pdo_pgsql": "*"
},
"require-dev": {
"php": ">=7.4",
"php": ">=8.1",
"ext-phar": "*",
"ext-tokenizer": "*",
"ext-xmlwriter": "*",
"phpstan/phpstan": "^1.11",
"phpstan/phpstan-strict-rules": "^1.6",
"squizlabs/php_codesniffer": "^3.9"
"phpstan/phpstan": "^2",
"phpstan/phpstan-strict-rules": "^2",
"squizlabs/php_codesniffer": "^3"
},
"scripts": {
"php-lint": "find . -type d -name 'vendor' -prune -o -name '*.php' -print0 | xargs -0 -n1 -P4 php -l 1>/dev/null",
"phtml-lint": "find . -type d -name 'vendor' -prune -o -name '*.phtml' -print0 | xargs -0 -n1 -P4 php -l 1>/dev/null",
"phpcs": "phpcs . -s",
"phpcbf": "phpcbf . -p -s",
"phpstan": "phpstan analyse --memory-limit 512M .",
"phpstan-next": "phpstan analyse --memory-limit 512M -c phpstan-next.neon .",
"phpstan-third-party": "phpstan analyse --memory-limit 512M -c phpstan-third-party.neon .",
"phpstan": "phpstan analyse .",
"phpstan-third-party": "phpstan analyse -c phpstan-third-party.neon .",
"test": [
"@php-lint",
"@phtml-lint",
"@phpcs",
"@phpstan",
"@phpstan-next"
"@phpstan"
],
"fix": [
"@phpcbf"