Skip to content

Commit d5480b9

Browse files
committed
chore: handle intentional d() calls in static analysis
1 parent d5c27fb commit d5480b9

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

‎system/Commands/Utilities/ConfigCheck.php‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ public function run(array $params)
126126
private function getKintD(object $config): string
127127
{
128128
ob_start();
129+
// @phpstan-ignore function.resultUnused
129130
d($config);
130131
$output = ob_get_clean();
131132

‎tests/system/CommonFunctionsTest.php‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,7 @@ public function testDWithCSP(): void
738738
Kint::$cli_detection = false;
739739

740740
$this->expectOutputRegex('/<script class="kint-rich-script" nonce="[a-zA-Z0-9+\/-_]+[=]{0,2}">/u');
741+
// @phpstan-ignore function.resultUnused
741742
d('string');
742743

743744
// Restore settings

0 commit comments

Comments
 (0)