From dca2ae60a1c7a7951ee769aefeb19c4576c57aa6 Mon Sep 17 00:00:00 2001 From: wn_ Date: Tue, 12 Nov 2024 03:38:45 +0000 Subject: Remove some PHPStan ignores and make others rule-specific. --- classes/Debug.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'classes/Debug.php') diff --git a/classes/Debug.php b/classes/Debug.php index 1cda12539..ba39b4d44 100644 --- a/classes/Debug.php +++ b/classes/Debug.php @@ -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); -- cgit v1.2.3-54-g00ecf