<?php class Test { public function foo(int $id = 1, string $str) {} public function bar(int $id = 1, string $str = '') {} } var_dump((string) new \ReflectionMethod(new Test(), 'foo')); var_dump((string) new \ReflectionMethod(new Test(), 'bar'));
You have javascript disabled. You will not be able to edit any code.