Is there a way of declaring an anonymous class that has no instance?
I'd like to do something like this:
$myclass = (class {
public $a;
})::class;
$myobject = new $myclass;
This is something you can do with named classes, but the above code throws a syntax error.