Replace call_user_func_array(), part 1
authorMax Semenik <maxsem.wiki@gmail.com>
Tue, 5 Jun 2018 06:24:34 +0000 (23:24 -0700)
committerMax Semenik <maxsem.wiki@gmail.com>
Tue, 5 Jun 2018 06:39:04 +0000 (23:39 -0700)
commit8085c58a4b675c0c11c6454bdf15b3ba61022283
tree75dc790c62f18fa21a7139541c4bcd418db94dd7
parentd5b271a464c97a54a7f4f9ec6d76e54249acef24
Replace call_user_func_array(), part 1

Uses new PHP 5.6 syntax like ...parameter unpacking and
calling anything looking like a callback to make the code more readable.
There are much more occurrences but this commit is intentionally limited
to an easily reviewable size.

Change-Id: Idcec077ef3fdf029b632cceafd0150851ad723e3
21 files changed:
includes/EditPage.php
includes/GlobalFunctions.php
includes/actions/Action.php
includes/api/ApiBase.php
includes/auth/AuthManager.php
includes/auth/LegacyHookPreAuthenticationProvider.php
includes/cache/CacheDependency.php
includes/cache/CacheHelper.php
includes/changes/CategoryMembershipChange.php
includes/changes/ChangesListBooleanFilter.php
includes/changes/ChangesListStringOptionsFilterGroup.php
includes/context/ContextSource.php
includes/context/DerivativeContext.php
includes/context/RequestContext.php
includes/debug/logger/MonologSpi.php
includes/deferred/AutoCommitUpdate.php
includes/diff/DifferenceEngine.php
includes/filerepo/FileRepo.php
includes/filerepo/ForeignDBRepo.php
includes/filerepo/LocalRepo.php
includes/installer/CliInstaller.php