Skip to content

Commit 1e2cee5

Browse files
Review
1 parent c2c7c8b commit 1e2cee5

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

tests/PHPStan/Rules/Functions/CallToFunctionParametersRuleTest.php

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2104,16 +2104,15 @@ public function testBug12499(): void
21042104

21052105
public function testBug13065(): void
21062106
{
2107+
$errors = [];
21072108
if (PHP_VERSION_ID < 80000) {
2108-
$this->analyse([__DIR__ . '/data/bug-13065.php'], [
2109-
[
2110-
'Parameter #1 $varname of function getenv expects string, null given.',
2111-
10,
2112-
],
2113-
]);
2114-
} else {
2115-
$this->analyse([__DIR__ . '/data/bug-13065.php'], []);
2109+
$errors[] = [
2110+
'Parameter #1 $varname of function getenv expects string, null given.',
2111+
10,
2112+
];
21162113
}
2114+
2115+
$this->analyse([__DIR__ . '/data/bug-13065.php'], $errors);
21172116
}
21182117

21192118
}

0 commit comments

Comments
 (0)