Skip to content

v13.24.0

@alies-dev alies-dev tagged this 27 Jul 14:09
queued() passed $default as the fallback for the Arr::get() lookup and then
re-processed that same value as if it were the array<path, Cookie> bucket, so
a caller supplied default was fed back into Arr::last()/Arr::get(). Returning
a Cookie default gave back bool(false), returning a scalar default threw a
TypeError, and a Closure default was resolved twice.

Cookie names and paths are now looked up as literal array keys. Passing them
through Arr::get() dot notation meant a name such as "foo.bar" resolved to the
cookie queued for the name "foo" at the path "bar", which also let $queued
hold a Cookie instead of a bucket and reach Arr::last() as a non array.
Assets 2
Loading