diff options
| author | 2025-12-17 10:11:18 +0100 | |
|---|---|---|
| committer | 2025-12-17 10:11:18 +0100 | |
| commit | 00cd5df294c875ea1e00ab2f645a338a6bd92c8e (patch) | |
| tree | e1dc56d3d01bffea632d1d4c08a1153d7ea7a7c5 /phpstan.dist.neon | |
| parent | 4bd503591469f47e710f1afbf0b5883f7770065d (diff) | |
Use native PHP #[Deprecated] (#8325)
https://php.watch/versions/8.4/Deprecated
And enfore it with PHPUnit + PHPStan.
Especially useful for extensions.
Diffstat (limited to 'phpstan.dist.neon')
| -rw-r--r-- | phpstan.dist.neon | 4 |
1 files changed, 4 insertions, 0 deletions
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 |
