Un-duplicating from T284715#7235065
List of steps to reproduce
Set this to LocalSettings.php without loading extensions or skins:
error_reporting( -1 ); ini_set( 'display_errors', 1 ); $wgShowExceptionDetails = true; $wgDBadminuser = 'zzzz; $wgDBadminpassword = 'zzzz';
What happens?:
This is displayed in the output :
PHP Deprecated: Premature access to service container [Called from Maintenance::finalSetup in .../maintenance/includes/Maintenance.php at line 1221] in .../includes/debug/MWDebug.php on line 376 Deprecated: Premature access to service container [Called from Maintenance::finalSetup in .../maintenance/includes/Maintenance.php at line 1221] in .../includes/debug/MWDebug.php on line 376 PHP Deprecated: Premature access to service 'HookContainer' [Called from MediaWiki\MediaWikiServices::getInstance in .../includes/MediaWikiServices.php at line 252] in .../includes/debug/MWDebug.php on line 376 Deprecated: Premature access to service 'HookContainer' [Called from MediaWiki\MediaWikiServices::getInstance in .../includes/MediaWikiServices.php at line 252] in .../includes/debug/MWDebug.php on line 376 PHP Deprecated: Premature access to service 'ObjectFactory' [Called from Wikimedia\Services\ServiceContainer::{closure} in .../includes/ServiceWiring.php at line 535] in .../includes/debug/MWDebug.php on line 376 Deprecated: Premature access to service 'ObjectFactory' [Called from Wikimedia\Services\ServiceContainer::{closure} in .../includes/ServiceWiring.php at line 535] in .../includes/debug/MWDebug.php on line 376 MediaWiki 1.36.1 Updater ...
What should have happened instead?:
No deprecation warnings should be displayed
Additional info
Removing those likes from LocalSettings.php will make the warnings go away:
$wgDBadminuser = 'zzzz; $wgDBadminpassword = 'zzzz';
Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc:
MediaWiki 1.36