Skip to content

Commit 623861e

Browse files
committed
another test
1 parent 917be2f commit 623861e

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

resources/functionMap_bleedingEdge.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
'ImagickKernel::scale' => ['void', 'scale'=>'float', 'normalizeFlag'=>'Imagick::NORMALIZE_KERNEL_*'],
108108
'max' => ['', '...arg1'=>'non-empty-array'],
109109
'min' => ['', '...arg1'=>'non-empty-array'],
110-
'file' => ['list<string>|false', 'filename'=>'string', 'flags='=>'FILE_USE_INCLUDE_PATH|FILE_IGNORE_NEW_LINES|FILE_SKIP_EMPTY_LINES', 'context='=>'resource'],
110+
'file' => ['list<string>|false', 'filename'=>'string', 'flags='=>'0|FILE_USE_INCLUDE_PATH|FILE_IGNORE_NEW_LINES|FILE_SKIP_EMPTY_LINES', 'context='=>'resource'],
111111
],
112112
'old' => [
113113

tests/PHPStan/Rules/Functions/CallToFunctionParametersRuleTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1372,8 +1372,8 @@ public function testFileParams(): void
13721372
{
13731373
$this->analyse([__DIR__ . '/data/file.php'], [
13741374
[
1375-
'Parameter #2 $flags of function file expects 1|2|4, 8 given.',
1376-
13,
1375+
'Parameter #2 $flags of function file expects 0|1|2|4, 8 given.',
1376+
16,
13771377
],
13781378
]);
13791379
}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
class Foo {
66
public function ok():void {
7+
$lines = file('http://www.example.com/');
8+
$lines1 = file('http://www.example.com/', 0);
9+
710
$f1 = file(__FILE__, FILE_USE_INCLUDE_PATH);
811
$f2 = file(__FILE__, FILE_IGNORE_NEW_LINES);
912
$f3 = file(__FILE__, FILE_SKIP_EMPTY_LINES);

0 commit comments

Comments
 (0)