wiki.techinc.nl/includes/exception
Aryeh Gregor 7b4489e019 Get rid of unnecessary func_get_args() and friends
HHVM does not support variadic arguments with type hints.  This is
mostly not a big problem, because we can just drop the type hint, but
for some reason PHPUnit adds a type hint of "array" when it creates
mocks, so a class with a variadic method can't be mocked (at least in
some cases).  As such, I left alone all the classes that seem like
someone might like to mock them, like Title and User.  If anyone wants
to mock them in the future, they'll have to switch back to
func_get_args().  Some of the changes are definitely safe, like
functions and test classes.

In most cases, func_get_args() (and/or func_get_arg(), func_num_args() )
were only present because the code was written before we required PHP
5.6, and writing them as variadic functions is strictly superior. In
some cases I left them alone, aside from HHVM compatibility:

* Forwarding all arguments to another function. It's useful to keep
  func_get_args() here where we want to keep the list of expected
  arguments and their meanings in the function signature line for
  documentation purposes, but don't want to copy-paste a long line of
  argument names.
* Handling deprecated calling conventions.
* One or two miscellaneous cases where we're basically using the
  arguments individually but want to use them as an array as well for
  some reason.

Change-Id: I066ec95a7beb7c0665146195a08e7cce1222c788
2019-04-12 20:17:01 +00:00
..
BadRequestError.php exception: Create generic BadRequestError based on ErrorPageError 2016-05-19 18:59:15 +00:00
BadTitleError.php exception: Create generic BadRequestError based on ErrorPageError 2016-05-19 18:59:15 +00:00
CannotCreateActorException.php Add actor table and code to start using it 2018-02-23 10:06:20 -08:00
ErrorPageError.php Fix/hack ErrorPageError to work from non-UI contexts 2017-07-06 20:04:31 +00:00
FatalError.php
HttpError.php Remove auto-generated "Constructor" documentation on constructors 2017-07-21 12:19:30 +02:00
ILocalizedException.php Move interface ILocalizedException to own file 2019-02-01 20:05:30 +01:00
LocalizedException.php Move interface ILocalizedException to own file 2019-02-01 20:05:30 +01:00
MWContentSerializationException.php Remove trailing empty lines in PHP 2017-01-16 22:06:43 +01:00
MWException.php Get rid of unnecessary func_get_args() and friends 2019-04-12 20:17:01 +00:00
MWExceptionHandler.php Drop MWExceptionHandler::getLogId(), deprecated in 1.27 and unused 2019-02-09 07:54:58 +00:00
MWExceptionRenderer.php Get rid of unnecessary func_get_args() and friends 2019-04-12 20:17:01 +00:00
MWUnknownContentModelException.php Add missing empty lines between methods 2019-01-15 19:14:35 +00:00
PermissionsError.php User group memberships that expire 2017-01-27 09:24:20 +00:00
ProcOpenError.php Replace wfShellExec() with a class 2017-09-08 21:49:49 -07:00
ReadOnlyError.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
ShellDisabledError.php Replace wfShellExec() with a class 2017-09-08 21:49:49 -07:00
ThrottledError.php
UserBlockedError.php
UserNotLoggedIn.php Drop six authentication-related hooks, deprecated in 1.27 2018-10-29 15:02:06 -07:00