<?php class a { function foo (): a { return $this; } } $a = new a; var_dump($a->foo());
You have javascript disabled. You will not be able to edit any code.