diff --git a/models/TypeDoc.php b/models/TypeDoc.php index 4278fb3b..3699e646 100644 --- a/models/TypeDoc.php +++ b/models/TypeDoc.php @@ -53,7 +53,7 @@ class TypeDoc extends BaseDoc * @return null|MethodDoc|PropertyDoc */ public function findSubject($subjectName) - { + {if(isset($subjectName[0])){ if ($subjectName[0] != '$') { foreach ($this->methods as $name => $method) { if (rtrim($subjectName, '()') == $name) { @@ -61,6 +61,7 @@ public function findSubject($subjectName) } } } +} if (!empty($subjectName) && substr_compare($subjectName, '()', -2, 2) === 0) { return null; }