<?php declare(strict_types = 1); phpversion() >= "7.0.0" or die(); class Nul { } class C extends Nul { } function m() : C { return new Nul; } var_dump(m());
You have javascript disabled. You will not be able to edit any code.