Guess it's impossible design for Hacklang?
<?hh //strict
abstract class Foo {
public static function bar():void {
$class = get_called_class();
$instance = new $class();
// do stuff
}
}
Can't use new on classname 'Foo'; __construct arguments are not guaranteed to be consistent in child classes (Typing[4060])