How would I get something like this to work?
$class_name = 'ClassPeer';
$class_name::doSomething();
$class_name = 'Test';
$method_name = 'doSomething';
$params = ['something'];
$class_name::$method_name(...$params);
Or, for legacy version of PHP:
call_user_func(array($class_name, 'doSomething'));
call_user_func($class_name .'::doSomething'); // >5.2.3