The method setMax() does not exist on GoetasWebservices\XML\XS...ema\Element\ElementItem. It seems like you code against a sub-type of said class. However, the method does not exist in GoetasWebservices\XML\XS...hema\Element\ElementDef or GoetasWebservices\XML\XS...er\Schema\Element\Group. Are you sure you never get one of those?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
92
$e->/** @scrutinizer ignore-call */
93
setMax($this->getMax());
Loading history...
93
3
$elements[$k] = $e;
94
1
}
95
1
}
96
97
3
return $elements;
98
}
99
100
public function addElement(ElementItem $element)
101
{
102
throw new BadMethodCallException("Can't add an element for a ref group");
103
}
104
105
/**
106
* @return GroupRef
107
*/
108
135
public static function loadGroupRef(Group $referenced, DOMElement $node)