Skip to content

Promote warnings to Error in FileInfo extension - #5914

Closed
Girgias wants to merge 2 commits into
php:masterfrom
Girgias:fileinfo-warning-to-error
Closed

Promote warnings to Error in FileInfo extension#5914
Girgias wants to merge 2 commits into
php:masterfrom
Girgias:fileinfo-warning-to-error

Conversation

@Girgias

Copy link
Copy Markdown
Member

Not sure how we deal with resource types in union?
@kocsismate as the expert here on error messages, what do you recommend?

Comment threadext/fileinfo/fileinfo.c Outdated

@kocsismatekocsismateJul 31, 2020

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think this code path can't be reached since you added the type error

Comment threadext/fileinfo/fileinfo.c Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think this message is good as-is, although probably the order of the types could be swapped. As far as I saw, object, array are both displayed before strings, so maybe it's worth to do the same with resources too.

@Girgias
Girgiasforce-pushed the fileinfo-warning-to-error branch from 05d03fb to 0b54e61CompareJuly 31, 2020 18:56
@Girgias

Copy link
Copy Markdown
MemberAuthor

CI Failure is unrelated

@Girgias
Girgias deleted the fileinfo-warning-to-error branch August 6, 2020 11:47
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@Girgias@nikic@kocsismate