From 00cd5df294c875ea1e00ab2f645a338a6bd92c8e Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Wed, 17 Dec 2025 10:11:18 +0100 Subject: Use native PHP #[Deprecated] (#8325) https://php.watch/versions/8.4/Deprecated And enfore it with PHPUnit + PHPStan. Especially useful for extensions. --- phpstan.dist.neon | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'phpstan.dist.neon') diff --git a/phpstan.dist.neon b/phpstan.dist.neon index 4cde7f8ab..0132b7c4a 100644 --- a/phpstan.dist.neon +++ b/phpstan.dist.neon @@ -57,7 +57,11 @@ parameters: - 'Minz_Exception' ignoreErrors: - '#Only booleans are allowed in (a negated boolean|a ternary operator condition|an elseif condition|an if condition|&&|\|\|), (bool|false|int(<[0-9, max]+>)?|true|null|\|)+ given.*#' + - + message: '#Access to deprecated#' + path: app/Models/Context.php includes: + - vendor/phpstan/phpstan-deprecation-rules/rules.neon - vendor/phpstan/phpstan-phpunit/extension.neon - vendor/phpstan/phpstan-phpunit/rules.neon - vendor/phpstan/phpstan-strict-rules/rules.neon -- cgit v1.2.3