Fix phan
This commit is contained in:
parent
b25c75c87d
commit
fc0496c48b
1 changed files with 2 additions and 0 deletions
|
|
@ -355,9 +355,11 @@ abstract class CommonObjectLine extends CommonObject
|
|||
$parent_classname = $parent_element_properties['classname'];
|
||||
$parent_element = new $parent_classname($this->db);
|
||||
if ($parentattribute && method_exists($parent_element, 'fetch')) {
|
||||
// @phan-suppress-next-line PhanPluginUnknownObjectMethodCall
|
||||
$parent_element->fetch($this->$parentattribute); /* @phpstan-ignore-line */
|
||||
}
|
||||
|
||||
// @phan-suppress-next-line PhanPluginUnknownObjectMethodCall
|
||||
return $parent_element->getNomUrl($withpicto).' - Line #'.$this->id; /* @phpstan-ignore-line */
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue