The expression return $this->helperGetO...asladadosdelServicio()) could return the type CfdiUtils\Elements\Plata...s10\DetallesDelServicio which is incompatible with the type-hinted return CfdiUtils\Elements\Plata...sTrasladadosdelServicio. Consider adding an additional type-check to rule them out.
Loading history...
26
}
27
28
1
public function addImpuestosTrasladadosdelServicio(array $attributes = []): ImpuestosTrasladadosdelServicio
The expression return $this->helperGetO...ibucionGubernamental()) could return the type CfdiUtils\Elements\Plata...s10\DetallesDelServicio which is incompatible with the type-hinted return CfdiUtils\Elements\Plata...ntribucionGubernamental. Consider adding an additional type-check to rule them out.
Loading history...
38
}
39
40
1
public function addContribucionGubernamental(array $attributes = []): ContribucionGubernamental
41
{
42
1
$subject = $this->getContribucionGubernamental();
43
1
$subject->addAttributes($attributes);
44
1
return $subject;
45
}
46
47
1
public function getComisionDelServicio(): ComisionDelServicio
The expression return $this->helperGetO...\ComisionDelServicio()) could return the type CfdiUtils\Elements\Plata...s10\DetallesDelServicio which is incompatible with the type-hinted return CfdiUtils\Elements\Plata...s10\ComisionDelServicio. Consider adding an additional type-check to rule them out.
Loading history...
50
}
51
52
1
public function addComisionDelServicio(array $attributes = []): ComisionDelServicio