Skip to content

Conversation

@theodorejb
Copy link

@theodorejb theodorejb commented Nov 4, 2025

  • Simplified header and footer text.
  • Moved Pipe Operator example to the top and simplified the code and description slightly.
  • Made the URI Extension description less wordy.
  • Replaced the Clone With example to have a realistic before/after class (rather than a fatal error in the before example).
  • Greatly simplified the array_first() example and moved it to after the #[\NoDiscard] attribute.
  • Replaced the Closures and First Class Callables in Constant Expressions example with a couple self-contained functions highlighting the new syntax (rather than a complex test which isn't even supported in PHPUnit). Also added a description.
  • Shortened and clarified the Persistent cURL Share Handles example and added a more helpful description.
  • Filled out the Deprecations and backward compatibility breaks section.
  • Replaced New Classes, Interfaces, and Functions section with a more relevant Additional features and improvements section (mentioning that fatal errors now include a backtrace, that setcookie() and setrawcookie() now support the "partitioned" key, and clarifying some of the other new functions/features).

Screenshot of the updated content:
Improved PHP 8.5 content

* Simplified header and footer text.
* Moved Pipe Operator example to the top and simplified the code and description slightly.
* Made the URI Extension description less wordy.
* Replaced the *Clone With* example to have a realistic before/after class (rather than a fatal error in the before example).
* Greatly simplified the `array_first()` example and moved it to after the `#[\NoDiscard]` attribute.
* Replaced the *Closures and First Class Callables in Constant Expressions* example with a couple self-contained functions highlighting the new syntax (rather than a complex test which isn't even supported in PHPUnit). Also added a description.
* Shortened and clarified the *Persistent cURL Share Handles* example and added a more helpful description.
* Filled out the *Deprecations and backward compatibility breaks* section.
* Replaced *New Classes, Interfaces, and Functions* section with a more relevant *Additional features and improvements* section (mentioning that fatal errors now include a backtrace, that `setcookie()` and `setrawcookie()` now support the "partitioned" key, and clarifying some of the other new functions/features).
@saundefined saundefined merged commit eac11c7 into saundefined:php-85 Nov 4, 2025
@theodorejb theodorejb deleted the php-85-content branch November 6, 2025 00:28
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