diff --git a/php/php.editor/src/org/netbeans/modules/php/editor/elements/BaseFunctionElementSupport.java b/php/php.editor/src/org/netbeans/modules/php/editor/elements/BaseFunctionElementSupport.java old mode 100644 new mode 100755 index e5b6e78613a9..0f6a24a54716 --- a/php/php.editor/src/org/netbeans/modules/php/editor/elements/BaseFunctionElementSupport.java +++ b/php/php.editor/src/org/netbeans/modules/php/editor/elements/BaseFunctionElementSupport.java @@ -137,7 +137,7 @@ public final String asString(PrintAs as, BaseFunctionElement element, TypeNameRe if (methdodInvocation.startsWith(" ")) { methdodInvocation = methdodInvocation.substring(1); } - if (returns2.size() > 0) { + if (!returns2.isEmpty() && !element.getName().equals(MethodElement.CONSTRUCTOR_NAME)) { template.append(String.format("{%nreturn parent::%s;%n}", methdodInvocation)); //NOI18N } else { template.append(String.format("{%nparent::%s;%n}", methdodInvocation)); //NOI18N