Page MenuHomePhabricator

Several PHP 8.1 deprecation notices in DPLforum code
Open, Needs TriagePublicBUG REPORT

Description

Steps to replicate the issue

  • Uses MediaWiki 1.40.0
  • Go to a page uses DPLforum
  • See deprecation notices

What happens?:

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/wwwroot/podcast/extensions/DPLforum/src/DPLForum.php on line 254

Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /www/wwwroot/podcast/extensions/DPLforum/src/DPLForum.php on line 314

What should have happened instead?:
No deprecation notices

Software version (skip for WMF-hosted wikis like Wikipedia):
DPLforum: 3.7.2 (f890602)
MediaWiki: 1.40.0
PHP: 8.1.17

Event Timeline

Aklapper renamed this task from Several deprecation notices on DPLforum to Several PHP 8.1 deprecation notices in DPLforum code.Jul 4 2023, 9:33 AM
Aklapper added a project: PHP 8.1 support.
This comment was removed by Lakejason0.

Change #1050583 had a related patch set uploaded (by NekoCharm; author: NekoCharm):

[mediawiki/extensions/DPLforum@master] fix: fix null warning and drop use of wfGetDB

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

Change #1050583 merged by jenkins-bot:

[mediawiki/extensions/DPLforum@master] fix: fix null warning and drop use of wfGetDB

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