This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Implement(Override) methods can be generated by three ways: - Code Generator - Code Completion - Hint (ImlementAbstractMethodsHintError) Sample code: <?php interface TestInterface { public function test(?string $stirng, int $int): ?string; } abstract class AbstractClass implements TestInterface { // Code Generator: [Alt] + [Insert] public function test(?string $stirng, int $int): string { // missing "?" } } class MyClass implements TestInterface { // Hint: [Alt] + [Enter] public function test(?string $stirng, int $int): string { // missing "?" } } class MyClass2 implements TestInterface { // CC: [Ctrl] + [Space] public function test(?string $stirng, int $int) { // missing a return type ; } } It seems that parameters have the prefix. But return types are missing it(or itself). Thanks.
Thanks for looking at this issue, Junichi.
Sure :)
Fixed. http://hg.netbeans.org/web-main/rev/e70046a5d4af Thanks.
Integrated into 'main-silver', will be available in build *201704040002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/e70046a5d4af User: Junichi Yamamoto <junichi11@netbeans.org> Log: #270237 - [PHP7.1] Generated codes are missing the nullable type prefix