<?php class x { public function m() {} } class y extends x { public function m():?string { return "1"; } } $x = new x(); $y = new y(); $x->m(); $y->m();
You have javascript disabled. You will not be able to edit any code.