Skip to content

More precise file() flags args in bleedingEdge#2476

Merged
ondrejmirtes merged 3 commits intophpstan:1.10.xfrom
staabm:file
Jun 22, 2023
Merged

More precise file() flags args in bleedingEdge#2476
ondrejmirtes merged 3 commits intophpstan:1.10.xfrom
staabm:file

Conversation

@staabm
Copy link
Contributor

@staabm staabm commented Jun 21, 2023

@phpstan-bot
Copy link
Collaborator

You've opened the pull request against the latest branch 1.11.x. If your code is relevant on 1.10.x and you want it to be released sooner, please rebase your pull request and change its target to 1.10.x.

@staabm staabm changed the base branch from 1.11.x to 1.10.x June 21, 2023 19:11
@staabm staabm marked this pull request as ready for review June 21, 2023 19:24
@phpstan-bot
Copy link
Collaborator

This pull request has been marked as ready for review.

@ondrejmirtes
Copy link
Member

Thank you.

@staabm staabm deleted the file branch June 22, 2023 12:58
'ImagickKernel::scale' => ['void', 'scale'=>'float', 'normalizeFlag'=>'Imagick::NORMALIZE_KERNEL_*'],
'max' => ['', '...arg1'=>'non-empty-array'],
'min' => ['', '...arg1'=>'non-empty-array'],
'file' => ['list<string>|false', 'filename'=>'string', 'flags='=>'0|FILE_USE_INCLUDE_PATH|FILE_IGNORE_NEW_LINES|FILE_SKIP_EMPTY_LINES', 'context='=>'resource'],
Copy link
Contributor

@iluuu1994 iluuu1994 Jun 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to be missing the FILE_NO_DEFAULT_CONTEXT flag (which is apparently undocumented).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks will have a look

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added via #2482

I missed it, because its missing from https://www.php.net/manual/en/function.file.php - therefore just also sumbitted a php.net docs PR

@ondrejmirtes
Copy link
Member

@staabm I don't think this should be reported: https://phpstan.org/r/7cdbe87f-3cd6-4ba7-a1d0-7e2be337d4ed Can you please look into it? Thank you.

@staabm staabm mentioned this pull request Jun 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants