Skip to content

Change long2ip return type#13395

Merged
kocsismate merged 5 commits into
php:masterfrom
jorgsowa:change_long2ip_return_type
Feb 16, 2024
Merged

Change long2ip return type#13395
kocsismate merged 5 commits into
php:masterfrom
jorgsowa:change_long2ip_return_type

Conversation

@jorgsowa

Copy link
Copy Markdown
Contributor

The function inet_ntop cannot return false in the current usage, as was described https://github.com/vimeo/psalm/pull/9537#discussion_r1140799451.

@devnexen

Copy link
Copy Markdown
Member

test failing on windows seem related

@ndossche

ndossche commented Feb 15, 2024

Copy link
Copy Markdown
Member

It fails because the assertion may be deleted and so the function call too.
Split the call from the assertion: store the result of the call in a variable, and do the assertion on the variable

@jorgsowa jorgsowa marked this pull request as ready for review February 15, 2024 21:43
Comment thread ext/standard/basic_functions.c Outdated
@devnexen

Copy link
Copy Markdown
Member

Look ok otherwise.

@devnexen

Copy link
Copy Markdown
Member

Would it be possible to squash your commits ?

@kocsismate

Copy link
Copy Markdown
Member

@devnexen It is possible to squash the commits on the GitHub UI. Since the MR looks good to me as well, I'll do it.

@kocsismate kocsismate merged commit e7b1f2a into php:master Feb 16, 2024
@jorgsowa

Copy link
Copy Markdown
Contributor Author

Thanks!

Sign up for free to 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.

4 participants