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
{{ message }}
Repository navigation
JSON:API resource collections fail for resources that wrap a non-model object #62296
pluck() reads resource through data_get(). A JsonResource implements ArrayAccess, so data_get() calls offsetExists('resource') on it, and that delegates to isset($this->resource['resource']). When the wrapped value is an object that doesn't implement ArrayAccess, PHP throws. This happens on every request, including ones with no include parameter.
A single resource wrapping the same object still works. 13.38.0 worked for both.
Reading the property instead of plucking it fixes it:
Activity