Skip to content

page_info_fetch: Fix PHP 8.5 'cannot use bool as array' warns#1586

Merged
cpeel merged 1 commit into
DistributedProofreaders:masterfrom
bpfoley:bool-as-array
Jun 3, 2026
Merged

page_info_fetch: Fix PHP 8.5 'cannot use bool as array' warns#1586
cpeel merged 1 commit into
DistributedProofreaders:masterfrom
bpfoley:bool-as-array

Conversation

@bpfoley

@bpfoley bpfoley commented Jun 3, 2026

Copy link
Copy Markdown
Collaborator

page_info_fetch() returns a list of 3 items, or false depending on if there's more information. false cannot be used in a destructuring assignment, and PHP 8.5 warns about this.

(Spotted while running smoke tests in an Ubuntu 26.04/PHP 8.5 VM)

page_info_cache() returns a list of 3 items, or false depending
on if there's more information. false cannot be used in a
destructuring assignment, and PHP 8.5 warns about this.

(Spotted while running smoke tests in an Ubuntu 26.04/PHP 8.5 VM)
@cpeel cpeel self-requested a review June 3, 2026 17:15
@cpeel

cpeel commented Jun 3, 2026

Copy link
Copy Markdown
Member

Oh, thanks! If you wanted to add PHP 8.5 to our CI test matrix (in another PR) I wouldn't be sad about that -- although I don't know what else lurks in there so it might be a can of worms.

@cpeel cpeel merged commit 66e42a9 into DistributedProofreaders:master Jun 3, 2026
9 checks passed
@bpfoley bpfoley deleted the bool-as-array branch June 3, 2026 21:54
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