MDL-70893 various: optional function arguments must be in the end

This commit is contained in:
Marina Glancy
2021-02-15 16:53:37 +01:00
parent 41037efa7a
commit 0eada7a5f9
20 changed files with 20 additions and 20 deletions
+1 -1
View File
@@ -916,7 +916,7 @@ class phpunit_util extends testing_util {
* or the name of the static class when calling a static method.
* @return mixed the respective return value of the method.
*/
public static function call_internal_method($object, $methodname, array $params = array(), $classname) {
public static function call_internal_method($object, $methodname, array $params, $classname) {
$reflection = new \ReflectionClass($classname);
$method = $reflection->getMethod($methodname);
$method->setAccessible(true);