Soft-Deprecate __sleep() and __wakeup()
ImplementedChanges the PHP 8.5 deprecation of __sleep() and __wakeup() into a docs-only soft deprecation, so no warning is emitted.
Last activity
Follow the proposals shaping the next version of PHP.
Changes the PHP 8.5 deprecation of __sleep() and __wakeup() into a docs-only soft deprecation, so no warning is emitted.
Last activity
Adds a partitioned option to setcookie(), setrawcookie() and session cookies so PHP can send CHIPS Partitioned cookies without a manual header.
Last activity
Adds PHP 8.5 warnings for coercing NAN, casting out of range floats to int, destructuring non-arrays and some isset()/empty() offset checks.
Last activity
Adds a $locale parameter to grapheme_strpos(), grapheme_stripos() and related functions so matching follows a language's rules.
Last activity
Deprecates dozens of old PHP features in 8.5, from backticks and (integer) casts to __sleep(), null array keys and curl_close(), for removal in PHP 9.
Last activity
Lets you put #[\Deprecated] on a trait so PHP emits a deprecation warning whenever a class uses it.
Last activity
Adds a FILTER_THROW_ON_FAILURE flag so filter_var() and friends throw a Filter\FilterFailedException instead of returning false.
Last activity
Lets the #[\Override] attribute go on properties, so PHP errors if no matching property exists in a parent class or interface.
Last activity
Adds a #[\DelayedTargetValidation] attribute that turns compile errors for misplaced built-in attributes into runtime errors, for cross-version code.
Last activity
Makes OPcache a required, always-loaded part of PHP, removing --disable-opcache while keeping opcache.enable and other settings.
Last activity
Lets clone() take an array of properties to change on the copy, so you can update readonly properties in with-er methods.
Last activity
Lets you mark a promoted constructor parameter as final, making the promoted property final without extra boilerplate.
Last activity
Adds the |> pipe operator, which passes the value on its left as the single argument to the callable on its right.
Last activity
Adds an always-on URI extension with Uri\Rfc3986\Uri and Uri\WhatWg\Url classes for standards-compliant URL parsing, instead of parse_url().
Last activity
Adds array_first() and array_last() to return an array's first and last values, or null when the array is empty.
Last activity
Adds grapheme_levenshtein() to intl, which measures edit distance by visible characters so combined accents and variation selectors compare right.
Last activity
Adds get_error_handler() and get_exception_handler() so you can read the current handlers without setting and restoring them.
Last activity
Adds a #[\NoDiscard] attribute that warns when a call ignores a function's return value, plus a (void) cast to ignore it on purpose.
Last activity
Extends asymmetric visibility, like public private(set), to static properties.
Last activity
Lets first-class callables like strlen(...) and self::method(...) appear in constant expressions such as attribute arguments.
Last activity