[go: up one dir, main page]

Page MenuHomePhabricator

Passing null to parameter #3 of str_replace is deprecated in Quiz extension
Closed, ResolvedPublic

Description

After updating to PHP 8.2, we started getting these errors from the Quiz extension:

str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated at /path/to/w/extensions/Quiz/includes/Quiz.php (112)

Event Timeline

Change 978543 had a related patch set uploaded (by Sophivorus; author: Sophivorus):

[mediawiki/extensions/Quiz@master] Type cast to prevent error in PHP 8

https://gerrit.wikimedia.org/r/978543

Change 978543 merged by jenkins-bot:

[mediawiki/extensions/Quiz@master] Type cast to prevent error in PHP 8

https://gerrit.wikimedia.org/r/978543

Change 979091 had a related patch set uploaded (by Sophivorus; author: Sophivorus):

[mediawiki/extensions/Quiz@master] Alternative way to prevent error in PHP 8

https://gerrit.wikimedia.org/r/979091

Change 979091 abandoned by Sophivorus:

[mediawiki/extensions/Quiz@master] Alternative way to prevent error in PHP 8

Reason:

https://gerrit.wikimedia.org/r/979091

Change 979093 had a related patch set uploaded (by Sophivorus; author: Sophivorus):

[mediawiki/extensions/Quiz@master] Another way to prevent error in PHP 8

https://gerrit.wikimedia.org/r/979093

Change 979093 merged by jenkins-bot:

[mediawiki/extensions/Quiz@master] Another way to prevent error in PHP 8

https://gerrit.wikimedia.org/r/979093

Change 989477 had a related patch set uploaded (by Sophivorus; author: Sophivorus):

[mediawiki/extensions/Quiz@REL1_39] Prevent error in PHP 8

https://gerrit.wikimedia.org/r/989477

Change 991565 had a related patch set uploaded (by Umherirrender; author: Sophivorus):

[mediawiki/extensions/Quiz@REL1_40] Prevent error in PHP 8

https://gerrit.wikimedia.org/r/991565

Change 991846 had a related patch set uploaded (by Umherirrender; author: Sophivorus):

[mediawiki/extensions/Quiz@REL1_41] Prevent error in PHP 8

https://gerrit.wikimedia.org/r/991846

Change 989477 merged by jenkins-bot:

[mediawiki/extensions/Quiz@REL1_39] Prevent error in PHP 8

https://gerrit.wikimedia.org/r/989477

Change 991846 merged by jenkins-bot:

[mediawiki/extensions/Quiz@REL1_41] Prevent error in PHP 8

https://gerrit.wikimedia.org/r/991846

Change 991565 merged by jenkins-bot:

[mediawiki/extensions/Quiz@REL1_40] Prevent error in PHP 8

https://gerrit.wikimedia.org/r/991565