LocalisationCache: Avoid use of compact()
authorKunal Mehta <legoktm@member.fsf.org>
Mon, 15 Oct 2018 07:17:38 +0000 (00:17 -0700)
committerKunal Mehta <legoktm@member.fsf.org>
Mon, 15 Oct 2018 20:35:30 +0000 (13:35 -0700)
commitd0463178dfa09b79b3a08fee939da1beed030824
tree47393cfff12b7c7ac86a87cd3ad2db22de24b6dc
parent6cb3fa392f5772f9e5e7b4b4769da1ba4cfda891
LocalisationCache: Avoid use of compact()

In PHP 7.3, compact() now raises notices if the variable is undefined, which
is something that we expect. So we can check whether the key exists instead
of bothering with compat() and suppressing warnings.

Bug: T206979
Change-Id: I612049db4debd850a2e6d10bc631d31aa17be898
includes/cache/localisation/LocalisationCache.php