Skip to content

Wrap coalescing operation so that it resolves before boolean check - #32

Merged
kadamwhite merged 1 commit into
mainfrom
php-warning-fix
Aug 3, 2026
Merged

Wrap coalescing operation so that it resolves before boolean check#32
kadamwhite merged 1 commit into
mainfrom
php-warning-fix

Conversation

@kadamwhite

Copy link
Copy Markdown
Contributor

! has higher priority than ??, so the original line here parsed as

( ! $attrs['query']['inherit'] ) ?? false

and causes a PHP warning [warning] Undefined array key "inherit".

! has higher priority than ??, so the original line here parsed as

    ( ! $attrs['query']['inherit'] ) ?? false

and causes a PHP warning `[warning] Undefined array key "inherit"`.
@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown

Playwright test results

passed  22 passed

Details

stats  22 tests across 7 suites
duration  1 minute, 19 seconds
commit  39c58e4

@kadamwhite
kadamwhite merged commit 5b9abba into main Aug 3, 2026
1 check passed
@kadamwhite
kadamwhite deleted the php-warning-fix branch August 3, 2026 17:46
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.

2 participants