We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a4d890 commit 09a1603Copy full SHA for 09a1603
lib/Compiler/Method/Method.php
@@ -89,13 +89,14 @@ public function compile()
89
// Return Tag
90
$contents .= (new Return_($this->method))->compile();
91
92
- if (!empty($this->class->getParentMethods())
+ if (
93
+ $this->class && !empty($this->class->getParentMethods())
94
&& in_array($this->method->reflection->getFqsen()->__toString(), array_keys($this->class->getParentMethods()))
- ) {
95
+ ) {
96
$contents .= self::NEWLINE;
97
$contents .= '*This method is inherited from `' . $this->class->getParent() . '`.*';
98
$contents .= self::PARAGRAPH;
- }
99
+ }
100
101
if ($this->method->hasParameters()) {
102
$paramsTable = new Table($this->method->getParameters());
0 commit comments