Page MenuHomePhabricator

It should be safe to create exceptions without using the global state
Open, Needs TriagePublic

Description

This came up in a patch dealing with MediaWikiTitleCodec in unit tests, where MalformedTitleException could not be created, but applies to other classes too. These exceptions use the global state when being created. Applies to

  • MalformedTitleException
  • LocalizedException
  • ApiUsageException
  • ErrorPageError and subclasses
  • UploadChunkVerificationException
  • UploadStashException