From 031ca33663a13645af1156125e0f1da79cfb2198 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 25 Oct 2016 17:11:24 +0800 Subject: [PATCH] CodeDoc/Data/Method.php --- CodeDoc/Data/Method.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CodeDoc/Data/Method.php b/CodeDoc/Data/Method.php index 18b782e..0561f8c 100644 --- a/CodeDoc/Data/Method.php +++ b/CodeDoc/Data/Method.php @@ -98,7 +98,7 @@ class PHP_CodeDoc_Data_Method extends PHP_CodeDoc_Data { return array( - "name" => $this->name, + "name" => $this->name == '__construct' ? ('new ' . $this->class) : $this->name, "parent" => "", "title" => "", "permname" => "", @@ -115,7 +115,7 @@ class PHP_CodeDoc_Data_Method extends PHP_CodeDoc_Data { 'xtype' => 'Entry', 'items' => array( array( - 'name' => $this->name, + 'name' => $this->name == '__construct' ? ('new ' . $this->class) : $this->name, 'is_static' => $this->isStatic ? true:false, 'memberof' => $this->class, 'returndesc' => $this->name == '_construct' ? '' : $this->description->return->desc, -- 2.39.2