Fix improper parameters to ReflectionMethod::invoke
authorKunal Mehta <legoktm@member.fsf.org>
Fri, 18 May 2018 05:30:58 +0000 (22:30 -0700)
committerKunal Mehta <legoktm@member.fsf.org>
Fri, 18 May 2018 05:30:58 +0000 (22:30 -0700)
commitd5bbd8cc629d6b1720800a3970a87bd77ac4d958
tree90734a6a183cfeac615f05a892010f810df0a30b
parentea90c217d95395f0ce03e89f83d35cf14c5b9b54
Fix improper parameters to ReflectionMethod::invoke

The first argument to the function is supposed to be an object, or null if
the method is static.

Otherwise on PHP 7.2 the tests fail with:
 ReflectionMethod::invoke() expects parameter 1 to be object, string given

Change-Id: I7002be5809f9dfbee0788907fe85139d05c0e1fc
tests/phpunit/includes/resourceloader/ResourceLoaderLessVarFileModuleTest.php