parser: Deprecate string type for $lang arg in DateFormatter::getInstance
authorFomafix <fomafix@googlemail.com>
Wed, 13 Sep 2017 12:57:44 +0000 (14:57 +0200)
committerKrinkle <krinklemail@gmail.com>
Tue, 20 Feb 2018 21:03:55 +0000 (21:03 +0000)
commitc33ca6218f9748959d889a1a4d0f6cc048cdcf0c
tree5bb2d2af834614d7c9861c7a9159f63ec2e9de02
parentcddacaa7c3d666bcc69ec7786c566d5f11e38038
parser: Deprecate string type for $lang arg in DateFormatter::getInstance

The parameter $lang is not used with type string in the Git repository:
https://codesearch.wmflabs.org/search/?q=DateFormatter%3A%3AgetInstance
This function is only used with type Language and without parameter.

The support for the language as string will be removed with Change-ID
I677ab561d67b63f0c86f65fadf9319e41444a22a.

The removal of the support for the type string simplifies the code.

Change-Id: I0c0ab46ffc0fab6b68672940e979ad7e5754a7d1
RELEASE-NOTES-1.31
includes/parser/DateFormatter.php