Skip to content

Use Null coalescing operator instead of default value of getPopulatedValue#76

Merged
martialblog merged 1 commit into
mainfrom
fix-array-key-exists-null
May 21, 2026
Merged

Use Null coalescing operator instead of default value of getPopulatedValue#76
martialblog merged 1 commit into
mainfrom
fix-array-key-exists-null

Conversation

@TheSyscall
Copy link
Copy Markdown
Collaborator

Populated values gets populated with a null value if there is no user preference set.
The default parameter is only used if the value isn't populated at all.
A null value still counts as populated and is therefore returned by getPopulatedValue.

Calling array_key_exists with a null key is deprecated in PHP 8.5.

…dValue`

Populated values gets populated with a null value if there is no user
preference set.
the default parameter is only used if the value isn't populated at all.
A null value still counts as populated and is therefore returned by
`getPopulatedValue`. Calling `array_key_exists` with a null key is
deprecated in php 8.5
@TheSyscall TheSyscall requested a review from martialblog May 21, 2026 09:38
@TheSyscall TheSyscall self-assigned this May 21, 2026
@TheSyscall TheSyscall added the bug Something isn't working label May 21, 2026
@martialblog martialblog merged commit 6eac12d into main May 21, 2026
3 checks passed
@martialblog martialblog deleted the fix-array-key-exists-null branch May 21, 2026 10:45
@martialblog martialblog added this to the v0.2.1 milestone May 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants