aboutsummaryrefslogtreecommitdiff
path: root/phpstan.neon
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2023-05-04 19:47:54 +0200
committerGravatar GitHub <noreply@github.com> 2023-05-04 19:47:54 +0200
commit30c69ef147059f440d304e7da5e0236d95e424fd (patch)
tree3aeec77db07a4fe23a3721e85dbe5175f98bc2b9 /phpstan.neon
parent675c56f5799ed92a6aa3a8ad3d3d8d6636f444ec (diff)
Use PHPStan dynamicConstantNames (#5370)
https://phpstan.org/config-reference#constants Avoid a few phpstan-ignore-next-line
Diffstat (limited to 'phpstan.neon')
-rw-r--r--phpstan.neon11
1 files changed, 11 insertions, 0 deletions
diff --git a/phpstan.neon b/phpstan.neon
index dd47c79ee..90c41aec7 100644
--- a/phpstan.neon
+++ b/phpstan.neon
@@ -20,6 +20,17 @@ parameters:
bootstrapFiles:
- cli/_cli.php
- lib/favicons.php
+ dynamicConstantNames:
+ - CACHE_PATH
+ - COPY_LOG_TO_SYSLOG
+ - COPY_SYSLOG_TO_STDERR
+ - DATA_PATH
+ - MAX_LOG_SIZE
+ - SIMPLEPIE_SYSLOG_ENABLED
+ - STDERR
+ - STDOUT
+ - TMP_PATH
+ - USERS_PATH
includes:
- vendor/phpstan/phpstan-phpunit/extension.neon
- vendor/phpstan/phpstan-phpunit/rules.neon