This implements support according to https://wiki.php.net/rfc/object-typehint
Depends on D13313
lgtm too - thanks Heinz