Skip to content

Deprecate returning non-string values from a user output handler #18932

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

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
upgrading
  • Loading branch information
DanielEScherzer committed Jun 24, 2025
commit cfe4d712a8e7027fd280b3f51008f4136ae7454b
5 changes: 3 additions & 2 deletions UPGRADING
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,9 @@ PHP 8.5 UPGRADE NOTES

- Core:
. Returning a non-string from a user output handler is deprecated. The
deprecation warning will bypass user output handlers to ensure it is
visible.
deprecation warning will bypass the handler with the bad return to ensure
it is visible; if there are nested output handlers the next one will still
be used.
RFC: https://wiki.php.net/rfc/deprecations_php_8_4

- Hash:
Expand Down
Loading