Skip to content

Commit 69cffff

Browse files
committed
fix
1 parent 16aea63 commit 69cffff

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

tests/PHPStan/Rules/Functions/CallToFunctionParametersRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1372,7 +1372,7 @@ public function testFileParams(): void
13721372
{
13731373
$this->analyse([__DIR__ . '/data/file.php'], [
13741374
[
1375-
'Parameter #2 $flags of function file expects 0|1|2|4|16, 8 given.',
1375+
'Parameter #2 $flags of function file expects 0|1|2|3|4|5|6|7|16|17|18|19|20|21|22|23, 8 given.',
13761376
16,
13771377
],
13781378
]);

tests/PHPStan/Rules/Functions/data/file.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,8 @@ public function error():void {
1919
public function noContext():void {
2020
$f = file(__FILE__, FILE_NO_DEFAULT_CONTEXT);
2121
}
22+
23+
public function doFoo():void {
24+
$fileLines = file(__FILE__, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
25+
}
2226
}

0 commit comments

Comments
 (0)