Skip to content

Commit

Permalink
fix: Add line with info about inherited method
Browse files Browse the repository at this point in the history
  • Loading branch information
gchtr committed Sep 18, 2024
1 parent 2ab29e3 commit 8c1d74f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Compiler/Method/Method.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ public function compile()
if (!empty($this->class->getParentMethods())
&& in_array($this->method->reflection->getFqsen()->__toString(), array_keys($this->class->getParentMethods()))
) {
// @todo: Add info about inherited method and possibly a link to the parent class.
$contents .= self::NEWLINE;
$contents .= '*This method is inherited from `' . $this->class->getParent() . '`.*';
$contents .= self::PARAGRAPH;
}

if ($this->method->hasParameters()) {
Expand Down

0 comments on commit 8c1d74f

Please sign in to comment.