Don't install a custom error handler for hooks
authorOri Livneh <ori@wikimedia.org>
Fri, 4 Dec 2015 19:59:52 +0000 (11:59 -0800)
committerOri Livneh <ori@wikimedia.org>
Fri, 4 Dec 2015 19:59:52 +0000 (11:59 -0800)
commitcdc50e9029f9781958bec0318ca743265f6a11d7
tree309d9f712f8a6c9192b1074341814443fdbdfe44
parente0b8359250aeca65ca371572d8ab34ed37722a43
Don't install a custom error handler for hooks

Installing a custom error handler on every hook invocation has a high overhead,
and does not even correctly achieves what it sets out to achieve, which is to
flag hook function signature errors (and only hook function signature errors).
The "PHP way" is to simply increase the error reporting level for development
environments, which we do already.

Bug: T117553
Change-Id: Iba0138a6d0a0ddf839bc5a36e03cadb012e06f3c
includes/Hooks.php