The expression return $this->helperGetO...rtaPorte10\Domicilio()) could return the type CfdiUtils\Elements\CartaPorte10\Notificado which is incompatible with the type-hinted return CfdiUtils\Elements\CartaPorte10\Domicilio. Consider adding an additional type-check to rule them out.
Loading history...
18
}
19
20
public function addDomicilio(array $attributes = []): Domicilio