Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup function calls #19

Merged
merged 5 commits into from
Dec 13, 2024
Merged

Cleanup function calls #19

merged 5 commits into from
Dec 13, 2024

Conversation

DamianZaremba
Copy link
Member

No description provided.

`in_array` prior to php 8 uses loose checking, since php 8 it now
stricly checks the type... the type here being an array not a string.

Change to array_key_exists, which is what we're really checking here.
Rather than exploding into an array on every edit - this is essentially
static config.
We are searching for the needle in the haystack, not the haystack in the
needl.
@DamianZaremba DamianZaremba merged commit 139afd9 into main Dec 13, 2024
1 check passed
@DamianZaremba DamianZaremba deleted the feature/cleanup branch December 13, 2024 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant