From a52193bae83e8572b6abd300d9f0b6f2bdf5b251 Mon Sep 17 00:00:00 2001 From: Giuseppe Mazzapica Date: Thu, 29 Feb 2024 20:43:44 +0100 Subject: [PATCH] Try fix Psalm --- src/Context/WpContext.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Context/WpContext.php b/src/Context/WpContext.php index 780ba6f..89d57d1 100644 --- a/src/Context/WpContext.php +++ b/src/Context/WpContext.php @@ -152,7 +152,7 @@ protected static function normalizeManifestPath(?string $path): ?string */ protected static function globalDebug(): bool { - /** @psalm-suppress TypeDoesNotContainType */ + /** @psalm-suppress RedundantCast, TypeDoesNotContainType */ return defined('SCRIPT_DEBUG') ? (bool) \SCRIPT_DEBUG : (defined('WP_DEBUG') && \WP_DEBUG); }