[ https://issues.apache.org/jira/browse/NETBEANS-53?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16904712#comment-16904712 ]
Tomáš Procházka commented on NETBEANS-53: ----------------------------------------- For PHP >7.1 would be also great if nullable types were supported: {code:php} class Foo { /** @var string|null */ private $foo; } {code} Expected generated code: {code:php} public function __construct(?string $foo) { $this->foo = $foo; } public function getFoo(): ?string { return $this->foo; } public function setFoo(?string $foo) { $this->foo = $foo; } {code} > PHP7.1 Setter/Getter code generation static types > ------------------------------------------------- > > Key: NETBEANS-53 > URL: https://issues.apache.org/jira/browse/NETBEANS-53 > Project: NetBeans > Issue Type: Improvement > Components: php - Editor > Reporter: Ádám Turcsán > Assignee: Junichi Yamamoto > Priority: Major > > The Insert code... / Setters/getters... functionality works great and uses > the docblock typehints as well but with static types (int, string) it > generates the setters and getter without argument types or return types. > It would be great if it could work with static types as well. -- This message was sent by Atlassian JIRA (v7.6.14#76016) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists