Skip to content

Issue #7061: Fix broken PHP 7.1 compatibility#5204

Merged
quicksketch merged 2 commits intobackdrop:1.xfrom
indigoxela:7061-broken-php7.1
Jan 23, 2026
Merged

Issue #7061: Fix broken PHP 7.1 compatibility#5204
quicksketch merged 2 commits intobackdrop:1.xfrom
indigoxela:7061-broken-php7.1

Conversation

@indigoxela
Copy link
Copy Markdown
Member

@indigoxela indigoxela commented Jan 21, 2026

Fixes backdrop/backdrop-issues#7061

Tests run again on 7.1 and, of course, unrelated BareUpgradePathTestCase, was eager to fail. 🙄

@backdrop-ci
Copy link
Copy Markdown
Collaborator

Related to: backdrop/backdrop-issues#7061

@dragonbot
Copy link
Copy Markdown
Collaborator

Tugboat has finished building a preview for this pull request!

Website: https://pr5204-nognwxaopd4hwjw9vyqmlzpjnlbtrqlc.tugboatqa.com/
Username: admin
Password: cad1917e7f33

This preview will automatically expire on the 21st of March, 2026.

* Whether to acquire a lock before writing to cache.
*/
protected function set(array $data, $lock = TRUE) {
protected function set($data, $lock = TRUE) { // phpcs:ignore
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add some hint, that we can't use a type hint, because of at least one known class in core extending BackdropCacheArray? Or should the issue discussion be sufficient?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's move forward with this as-is. The problem of adding type-hints as required by our PHPCS rules but not being backwards-compatible is going to be a wide-reaching problem.

@quicksketch quicksketch merged commit 8197054 into backdrop:1.x Jan 23, 2026
12 of 13 checks passed
@quicksketch
Copy link
Copy Markdown
Member

I merged this and cherry-picked back into 1.33.x and 1.32.x (where this regression was also made). Thank you @indigoxela!

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.

BackdropCMS 1.33.0 throws Call to undefined function cache() in system_list() error on PHP 7.1

4 participants