Page MenuHomePhabricator

Setting non-array attributes in extension.json results in unhelpful error messages
Closed, ResolvedPublic

Description

If you have non-array attributes set, you'll end up with an error like:

[15-Jun-2015 19:18:02] PHP Warning: array_merge_recursive() [<a href='function.array-merge-recursive'>function.array-merge-recursive</a>]: Argument #1 is not an array in D:\\xampp\\htdocs\\shoutwiki\\trunk\\includes\\registration\\ExtensionProcessor.php on line 294

That sucks and is terrible for debugging. We can provide a better error message.

Event Timeline

Legoktm claimed this task.
Legoktm raised the priority of this task from to Needs Triage.
Legoktm updated the task description. (Show Details)
Legoktm added subscribers: ashley, Legoktm, Aklapper.

Change 218784 had a related patch set uploaded (by Legoktm):
registration: Improve error message if a non-array attribute is set

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

Change 218784 merged by jenkins-bot:
registration: Improve error message if a non-array attribute is set

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