Your project must not contain invalid instantiations
- Read doc
- Reliability
- Major
More information: https://insight.symfony.com/what-we-analyse/php.invalid_instantiation
- $this->_xml->{$name}[$idx] = $value;
- foreach ($attributes as $attr => $v) {
- $this->_xml->{$name}[$idx][(string) $attr] = (string) $v;
- }
- $node = new self($this->_xml->$name);
- if ($getLastChild) {
- $array = $this->_xml->xpath($name."[last()]");
- if (is_array($array)) {
- $xml = array_shift($array);
- if ($xml instanceof \SimpleXMLElement) {
Your project should not use invalid offsets
- Read doc
- Reliability
- Major
More information: https://insight.symfony.com/what-we-analyse/php.invalid_offset
- *
- * @return static the current builder
- */
- public function attribute(string $name, string $value): static
- {
- $this->_xml[$name] = $value;
- return $this;
- }
- /**