The expression return $this->helperGetO...s\Pagos20\ImpuestosP()) could return the type CfdiUtils\Elements\Pagos20\Pago which is incompatible with the type-hinted return CfdiUtils\Elements\Pagos20\ImpuestosP. Consider adding an additional type-check to rule them out.
Loading history...
40
}
41
42
public function addImpuestosP(array $attributes = []): ImpuestosP