Skip to content

Commit 6592371

Browse files
committed
fix: Use of deprecated PHP function.
Reimplemented an alternative function.
1 parent 3c3cb74 commit 6592371

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

NelsonMartell/Utilities/UnitTesting/Assert.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public static function MethodThrowsException($method_name, $obj, $params = array
135135
$actual = typeof(null);
136136

137137
try {
138-
call_user_method_array($method_name, $obj, $params);
138+
call_user_func_array(array($obj, $method_name), $params);
139139
} catch (Exception $e) {
140140
$actual = typeof($e);
141141
}

0 commit comments

Comments
 (0)