From d5480b9ebffc28db81c6605f7bfd7d5ef3c6af95 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Dadashi Date: Fri, 5 Jun 2026 17:01:37 +0330 Subject: [PATCH 1/2] chore: handle intentional d() calls in static analysis --- system/Commands/Utilities/ConfigCheck.php | 1 + tests/system/CommonFunctionsTest.php | 1 + 2 files changed, 2 insertions(+) diff --git a/system/Commands/Utilities/ConfigCheck.php b/system/Commands/Utilities/ConfigCheck.php index 4583c67dae87..f8131e3feb18 100644 --- a/system/Commands/Utilities/ConfigCheck.php +++ b/system/Commands/Utilities/ConfigCheck.php @@ -126,6 +126,7 @@ public function run(array $params) private function getKintD(object $config): string { ob_start(); + // @phpstan-ignore function.resultUnused d($config); $output = ob_get_clean(); diff --git a/tests/system/CommonFunctionsTest.php b/tests/system/CommonFunctionsTest.php index 7f79b07381fd..8d5b5e3b8125 100644 --- a/tests/system/CommonFunctionsTest.php +++ b/tests/system/CommonFunctionsTest.php @@ -738,6 +738,7 @@ public function testDWithCSP(): void Kint::$cli_detection = false; $this->expectOutputRegex('/