The expression return $this->helperGetO...ents\Pagos20\Totales()) could return the type CfdiUtils\Elements\Pagos20\Pagos which is incompatible with the type-hinted return CfdiUtils\Elements\Pagos20\Totales. Consider adding an additional type-check to rule them out.
Loading history...
35
}
36
37
public function addTotales(array $attributes = []): Totales
38
{
39
$subject = $this->getTotales();
40
$subject->addAttributes($attributes);
41
return $subject;
42
}
43
44
public function addPago(array $attributes = []): Pago
45
{
46
$subject = new Pago($attributes);
47
$this->addChild($subject);
48
return $subject;
49
}
50
51
public function multiPago(array ...$elementAttributes): self