Skip to content

Conversation

@theodorejb
Copy link

Removed the deprecation for returning a non-string from a user output handler, since it was reverted (php/php-src#20455). Also documented the warning for destructuring non-array values.

I also included a commit which reverts to the simpler array_last() example. IMO the Stopwatch implementation details tend to obfuscate the benefit of array_last() rather than helping to highlight it.

The Stopwatch implementation details tend to obfuscate the benefit of `array_last()`. This is the simplest new feature in PHP 8.5, and it doesn't make sense to give it the most complicated example.
The deprecation for returning a non-string from a user output handler was reverted.

Also documented the warning for destructuring non-array values.
This commit does not change any content.
@saundefined saundefined merged commit ab0979a into saundefined:php-85 Nov 14, 2025
3 checks passed
@theodorejb theodorejb deleted the php-85-content branch November 14, 2025 21:37
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