LogFormatter: Don't return a non-array from formatParameterValueForApi
authorBrad Jorsch <bjorsch@wikimedia.org>
Thu, 28 Sep 2017 14:06:53 +0000 (10:06 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Thu, 28 Sep 2017 14:06:53 +0000 (10:06 -0400)
commitfa2724fa842e8b03d98236545ba5640255d08722
treeab6d797f4b09f8507393b61dfa71eaf9dd5293e2
parentc483a26aaaf3f603a75fa3dac8fbc1d2dea91485
LogFormatter: Don't return a non-array from formatParameterValueForApi

If the title for a 'title' or 'title-link' type is invalid, the code
still must not return a non-array from the method.

I'm not sure this is what was behind T176938, but it's the only thing I
can find that might cause the errors I saw logged at about the same
time.

Change-Id: Iae77eb6ad9a64d8b67074164ff0c0fea36826f3c
includes/logging/LogFormatter.php
tests/phpunit/includes/logging/LogFormatterTest.php