Skip to content

Conversation

@aerni
Copy link
Contributor

@aerni aerni commented Jan 12, 2026

This PR fixes a Cannot access offset of type array in isset or empty exception that was likely introduced with #12894 or #13266.

I ran into it because of PR #11870. The exception was caused by the following query in 75d76d0:

$query->whereIn('author', [User::current()->id()]);

I've removed this query in favor of the new whereHas() as seen in the commit. This resolves the issue in that particular PR.

I thought it was worth raising the issue anyway and providing a fix for it.

@jasonvarga jasonvarga merged commit 37dd227 into statamic:5.x Jan 13, 2026
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants