Skip to content

Change long2ip return type #13395

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

Merged
merged 5 commits into from
Feb 16, 2024
Merged

Conversation

jorgsowa
Copy link
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
Member

test failing on windows seem related

@nielsdos
Copy link
Member

nielsdos commented Feb 15, 2024

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
@devnexen
Copy link
Member

Look ok otherwise.

@devnexen
Copy link
Member

Would it be possible to squash your commits ?

@kocsismate
Copy link
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
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