Remove some PHPStan ignores and make others rule-specific.

This commit is contained in:
wn_
2024-11-12 03:38:45 +00:00
parent a784305cc7
commit dca2ae60a1
9 changed files with 8 additions and 16 deletions

View File

@@ -77,7 +77,7 @@ class Debug {
*/
public static function map_loglevel(int $level) : int {
if (in_array($level, self::ALL_LOG_LEVELS)) {
/** @phpstan-ignore-next-line */
/** @phpstan-ignore return.type (yes it is a Debug::LOG_* value) */
return $level;
} else {
user_error("Passed invalid debug log level: $level", E_USER_WARNING);