Skip to content

Commit cdc2d71

Browse files
Simplified ClassMapper->staticMethod implementation
1 parent 3f1e204 commit cdc2d71

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/sprinkles/core/src/Util/ClassMapper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,6 @@ public function staticMethod($identifier, $methodName)
9090

9191
$params = array_slice(func_get_args(), 2);
9292

93-
return call_user_func_array("$className::$methodName", $params);
93+
return $className::$methodName(...$params);
9494
}
9595
}

0 commit comments

Comments
 (0)