Page MenuHomePhabricator

MediaWikiNoBaseException: Instantiating Exception directly is not allowed
Closed, ResolvedPublic1 Estimated Story Points

Description

https://gerrit.wikimedia.org/r/c/mediawiki/extensions/GlobalBlocking/+/1000972 fails CI for Phan with the following errors:

17:46:17 includes/GlobalBlockReasonFormatter.php:139 MediaWikiNoBaseException Instantiating \Exception directly is not allowed. Use SPL exceptions if the exception is unchecked, or define a custom exception class otherwise. See https://w.wiki/6nur
17:46:17 includes/GlobalBlockReasonFormatter.php:162 MediaWikiNoBaseException Instantiating \Exception directly is not allowed. Use SPL exceptions if the exception is unchecked, or define a custom exception class otherwise. See https://w.wiki/6nur
17:46:17 includes/GlobalBlocking.php:506 MediaWikiNoBaseException Instantiating \Exception directly is not allowed. Use SPL exceptions if the exception is unchecked, or define a custom exception class otherwise. See https://w.wiki/6nur

Event Timeline

Change 1003391 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/extensions/GlobalBlocking@master] Create GlobalBlockLocalStatusLookup service

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

Change 1003417 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/extensions/GlobalBlocking@master] Use RuntimeException over Exception in GlobalBlockReasonFormatter

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

Change 1003417 merged by jenkins-bot:

[mediawiki/extensions/GlobalBlocking@master] Use RuntimeException over Exception in GlobalBlockReasonFormatter

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

Change 1003391 merged by jenkins-bot:

[mediawiki/extensions/GlobalBlocking@master] Create GlobalBlockLocalStatusLookup service

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