Closed mikaelcom closed 2 years ago
Describe the bug The PHPDoc for @param is wrongly named and wrongly described
@param
/** * Get any value * @uses \DOMDocument::loadXML() * @param bool $asString true: returns XML string, false: returns \DOMDocument * @return \DOMDocument|string|null */ public function getAny(bool $asDomDocument = false) { $domDocument = null; if (!empty($this->any) && $asDomDocument) { $domDocument = new \DOMDocument('1.0', 'UTF-8'); $domDocument->loadXML($this->any); } return $asDomDocument ? $domDocument : $this->any; }
To Reproduce Generate a package containing a property that is an XML string.
Expected behavior
/** * Get any value * @uses \DOMDocument::loadXML() * @param bool $asDomDocument true: returns \DOMDocument, false: returns XML string * @return \DOMDocument|string|null */ public function getAny(bool $asDomDocument = false) { $domDocument = null; if (!empty($this->any) && $asDomDocument) { $domDocument = new \DOMDocument('1.0', 'UTF-8'); $domDocument->loadXML($this->any); } return $asDomDocument ? $domDocument : $this->any; }
Additional context Version >= 4.x
Describe the bug The PHPDoc for
@param
is wrongly named and wrongly describedTo Reproduce Generate a package containing a property that is an XML string.
Expected behavior
Additional context Version >= 4.x