Skip to content

Commit dc0b48b

Browse files
committed
chore: update PHPStan baseline for intentional d() calls
1 parent d5480b9 commit dc0b48b

4 files changed

Lines changed: 15 additions & 3 deletions

File tree

‎system/Commands/Utilities/ConfigCheck.php‎

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

‎tests/system/CommonFunctionsTest.php‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,6 @@ 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
742741
d('string');
743742

744743
// Restore settings
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# total 2 errors
2+
3+
parameters:
4+
ignoreErrors:
5+
-
6+
message: '#^Call to function d\(\) on a separate line has no effect\.$#'
7+
count: 1
8+
path: ../../system/Commands/Utilities/ConfigCheck.php
9+
10+
-
11+
message: '#^Call to function d\(\) on a separate line has no effect\.$#'
12+
count: 1
13+
path: ../../tests/system/CommonFunctionsTest.php

‎utils/phpstan-baseline/loader.neon‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# total 2010 errors
1+
# total 2012 errors
22

33
includes:
44
- argument.type.neon
@@ -10,6 +10,7 @@ includes:
1010
- codeigniter.superglobalAccessAssign.neon
1111
- deadCode.unreachable.neon
1212
- empty.notAllowed.neon
13+
- function.resultUnused.neon
1314
- method.alreadyNarrowedType.neon
1415
- method.childParameterType.neon
1516
- method.childReturnType.neon

0 commit comments

Comments
 (0)