Parser: Ensure function and tag hook callbacks are callable upon registration
authordaniel <daniel.kinzler@wikimedia.de>
Wed, 7 Jun 2017 10:49:24 +0000 (12:49 +0200)
committerLegoktm <legoktm@member.fsf.org>
Sun, 25 Jun 2017 10:11:12 +0000 (10:11 +0000)
commit5d528f39d84e490e30fe9c81b95c6eef981eb3c7
treee996467889c22389e4876825509c07ec65575265
parent7f65646f35fca0544e6fc388f884bfedcb9a8948
Parser: Ensure function and tag hook callbacks are callable upon registration

This is to safeguard against issues like T167238, where the callback was invalid,
but was only noticed when the magic word was used in an article.

In general, type checks should be applied when things get
registered for later use. Fail early, stay sane.

Change-Id: Ifb7005ee214829c98cec534261c0db7d13f50f35
includes/parser/Parser.php