fix cs issue: "Arguments with default values must be at the end of the argument list"

This commit is contained in:
Libor M 2020-10-18 08:54:12 +02:00
parent b7dc71ab1b
commit b8ffe0477b
1 changed files with 3 additions and 3 deletions

View File

@ -573,11 +573,11 @@ abstract class AbstractPart
* Returns the first child element found * Returns the first child element found
* *
* @param XMLReader $xmlReader * @param XMLReader $xmlReader
* @param \DOMElement $parentNode * @param \DOMElement|null $parentNode
* @param string|array $elements * @param string|array|null $elements
* @return string|null * @return string|null
*/ */
private function findPossibleElement(XMLReader $xmlReader, \DOMElement $parentNode = null, $elements) private function findPossibleElement(XMLReader $xmlReader, \DOMElement $parentNode = null, $elements = null)
{ {
if (is_array($elements)) { if (is_array($elements)) {
//if element is an array, we take the first element that exists in the XML //if element is an array, we take the first element that exists in the XML