PHP 8.6 Partial Function Application With ? and ...
PHP 8.6 adds partial function application, using ? and ... placeholders to create closures with some function arguments already filled in.
Eric L. Barnes
PHP 8.6 adds partial function application, using ? and ... placeholders to create closures with some function arguments already filled in.
Eric L. Barnes
PHP 8.6 deprecates return statements inside finally blocks because they can silently replace return values or swallow exceptions.
Eric L. Barnes
PHP 8.6 enables strict session mode and HttpOnly cookies by default, while setting SameSite to Lax. Here is what applications should check.
Eric L. Barnes
PHP 8.6 throws ValueError and TypeError exceptions for invalid arguments that many functions once accepted, truncated, or ignored.
Eric L. Barnes
PHP 8.6 deprecates session handlers missing create_sid() and validateId(), and warns when the class is declared. Laravel's handlers trip it.
Eric L. Barnes
PHP 8.6 lets you change an object's properties through a constant while keeping the constant itself unchanged.
Eric L. Barnes
PHP 8.6 Beta 1 ships August 13 and starts the soft feature freeze, locking in partial application, clamp(), the Duration class, and a new polling API.
Eric L. Barnes
The PHP 8.6 mass deprecation RFC closed with 31 proposals accepted and 4 rejected, including a 23 to 23 tie on list() and a no vote on the dechunk filter.
Eric L. Barnes
The Readonly Property Defaults RFC passed 24 to 0, so PHP 8.6 lets you declare a default on a readonly property instead of setting it in the constructor.
Eric L. Barnes
Time\Duration is merged for PHP 8.6. Build durations are in seconds, milliseconds, or hours; add, divide, and compare them.
Eric L. Barnes
Artisan Build's weekly php-internals video covers the 35-ballot PHP 8.6 deprecation vote closing August 10, with list() still short of two-thirds.
Eric L. Barnes
Brent Roose's PHP 8.6 rundown walks through partial function application, the new polling API, clamp(), the Duration class, and 20+ deprecations.
Eric L. Barnes