You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
array_reduce() with a closure callback over [E::A, E::B] must return the enum case object selected by the callback (Zend). This compiler rejects closure callbacks with LogicException (array_reduce() callback must be a string user-function name). Even after #3086 enables closure callbacks, enum arrays must not coerce case objects to backing scalars between folds.
Category
stdlibProblem
array_reduce()with a closure callback over[E::A, E::B]must return the enum case object selected by the callback (Zend). This compiler rejects closure callbacks withLogicException(array_reduce() callback must be a string user-function name). Even after #3086 enables closure callbacks, enum arrays must not coerce case objects to backing scalars between folds.php-src reference
ext/standard/array.c—PHP_FUNCTION(array_reduce)Repro
E::A(enum object)LogicException(closure deferred)Scope
ext/standard/array_reduce.php— closure path (feat(vm): closure callbacks in array_map, array_filter, usort (#72) #3086)array_map)test/compliance/cases/stdlib/array_reduce_enum.phptDone when
./script/ci-fast.sh --filter array_reduce_enumgreenRelated