<?php declare(strict=1); class Test { } class A { public function abc(): Test { return null; } } $b = new A; print_r([ $b->abc() ]);
You have javascript disabled. You will not be able to edit any code.