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