Skip to content

Fix deprecation notice on PHP 8.5 about using null for array access.#29

Open
rrigby wants to merge 1 commit intotithely:masterfrom
rrigby:fix-null-array-access
Open

Fix deprecation notice on PHP 8.5 about using null for array access.#29
rrigby wants to merge 1 commit intotithely:masterfrom
rrigby:fix-null-array-access

Conversation

@rrigby
Copy link
Contributor

@rrigby rrigby commented Mar 6, 2026

Check for null before trying to access array. This happens when a the key for a join is nullable.
Also some minor improvements, use array_unique for the in() query param to prevent us passing the same thing a hundred times to in
And do array_values when we do the grouping so we only do it once.

This resolves it, plus slightly improves performance.
@rrigby rrigby changed the title Fix deprecation notice on 8.5 about using null for array access. Fix deprecation notice on PHP 8.5 about using null for array access. Mar 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant