Skip to content

Ignore long2ip() that is actually safe #671

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

Conversation

cedric-anne
Copy link
Contributor

See php/php-src#13395 and the mentioned vimeo/psalm#9537 (comment) discussion.

The false return value documented for the long2ip() function can actually never happen. Using Safe/long2ip() instead will then never have any value.

I propose to ignore it. This will prevent to have differences in detected error between PHP 8.4 and previous PHP versions.

@silasjoisten silasjoisten merged commit b7ffc8d into thecodingmachine:master May 13, 2025
10 checks passed
@cedric-anne cedric-anne deleted the change/ignore-long2ip branch May 13, 2025 17:21
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.

2 participants