FILTER_THROW_ON_FAILURE
ImplementedAdds a FILTER_THROW_ON_FAILURE flag so filter_var() and friends throw a Filter\FilterFailedException instead of returning false.
Last activity
Follow the proposals shaping the next version of PHP.
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
Adds a required Abstain option to every RFC's primary vote, counted the same as not voting, and rewrites the voting rules.
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 ? and ... placeholders to function calls, so passing only some arguments returns a closure that takes the rest later.
Last activity
Adds an official policy for how PHP extensions name, structure and throw exceptions, based on the ext/random design.
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
Updates the PHP release policy to define BC breaks, clarify what each version type may change, and let most features land via pull request.
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
Adds a fatal_error_backtraces INI setting, on by default, so fatal errors include a stack trace like exceptions do.
Last activity
Lets you put attributes, including #[\Deprecated], on constants declared with const, and read them with ReflectionConstant::getAttributes().
Last activity