<?php class Test { public function first(string $str): string { function nested() { } return $str; } public function second(int $i): int { return $i; } } $t = new Test; echo $t->first(42); echo $t->second(42);
You have javascript disabled. You will not be able to edit any code.