From 30c69ef147059f440d304e7da5e0236d95e424fd Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Thu, 4 May 2023 19:47:54 +0200 Subject: Use PHPStan dynamicConstantNames (#5370) https://phpstan.org/config-reference#constants Avoid a few phpstan-ignore-next-line --- phpstan.neon | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'phpstan.neon') 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 -- cgit v1.2.3