Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More precise file() flags args in bleedingEdge #2476

Merged
merged 3 commits into from Jun 22, 2023

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 ondrejmirtes merged commit 0d626cb into phpstan:1.10.x Jun 22, 2023
377 of 381 checks passed
@ondrejmirtes
Copy link
Member

Thank you.

@staabm staabm deleted the file branch June 22, 2023 12:58
@@ -107,6 +107,7 @@
'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
4 participants