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