Skip to content

Update deprecations and BC breaks and extract strings for translation - #33

Merged
saundefined merged 3 commits into
saundefined:php-85from
theodorejb:php-85-content
Nov 14, 2025
Merged

Update deprecations and BC breaks and extract strings for translation#33
saundefined merged 3 commits into
saundefined:php-85from
theodorejb:php-85-content

Conversation

@theodorejb

Copy link
Copy Markdown

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