Skip to content

Commit 9362f7a

Browse files
Fix
1 parent 042de8e commit 9362f7a

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

tests/PHPStan/Rules/Functions/CallToFunctionParametersRuleTest.php

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2181,7 +2181,27 @@ public function testBug8506(): void
21812181

21822182
public function testBug7772(): void
21832183
{
2184-
$this->analyse([__DIR__ . '/data/bug-7772.php'], []);
2184+
$errors = [];
2185+
if (PHP_VERSION_ID < 80000) {
2186+
$errors[] = [
2187+
'Parameter #2 $path of function session_set_cookie_params expects string, string|null given.',
2188+
12,
2189+
];
2190+
$errors[] = [
2191+
'Parameter #3 $domain of function session_set_cookie_params expects string, string|null given.',
2192+
12,
2193+
];
2194+
$errors[] = [
2195+
'Parameter #4 $secure of function session_set_cookie_params expects bool, bool|null given.',
2196+
12,
2197+
];
2198+
$errors[] = [
2199+
'Parameter #5 $httponly of function session_set_cookie_params expects bool, bool|null given.',
2200+
12,
2201+
];
2202+
}
2203+
2204+
$this->analyse([__DIR__ . '/data/bug-7772.php'], $errors);
21852205
}
21862206

21872207
public function testBug13065(): void

0 commit comments

Comments
 (0)