Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit df3f207

Browse files
committed
Don't pass function params by reference, they might not always be variables
1 parent 98eb081 commit df3f207

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/reflection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public static function set_property($object, string $property_name, $value) {
110110
*
111111
* @return mixed The value returned by the function
112112
*/
113-
public static function call_method($object, string $method_name, &...$args) {
113+
public static function call_method($object, string $method_name, ...$args) {
114114
$class_name = (is_object($object)) ? get_class($object) : $object;
115115
$class_name = static::resolve_method_class($class_name, $method_name);
116116

0 commit comments

Comments
 (0)