| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
The nullable return type dates from the stub introduction, when the error paths were warnings followed by a bare return. PHP 8.0 turned them into ValueError, so every exit is now either RETURN_LONG or RETURN_THROWS.
Co-authored-by: NickSdot <32384907+NickSdot@users.noreply.github.com>
|
You just need an UPGRADING entry but LGTM otherwise |
Sorry, something went wrong.
|
are you able to merge yourself btw ? |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
socket_cmsg_space() is declared ?int, but the nullable return is unreachable.
The stub was written when each failure was a php_error_docref() warning followed by a bare return;, which yields null. PHP 8.0 converted those to ValueError, removing every null exit path. The declaration was not updated.
Every exit is now either RETURN_LONG or RETURN_THROWS. Narrowing ?int to int is a subtype change; no valid call is affected.