The expression return array('1000' => '...olicitudes permitidas') returns the type array<string,string> which is incompatible with the return type mandated by Eclipxe\MicroCatalog\Mic...alog::getEntriesArray() of Eclipxe\MicroCatalog\TEntry[].
In the issue above, the returned value is violating the contract defined by the
mentioned interface.
Let's take a look at an example:
interfaceHasName{/** @return string */publicfunctiongetName();}className{public$name;}classUserimplementsHasName{/** @return string|Name */publicfunctiongetName(){returnnewName('foo');// This is a violation of the ``HasName`` interface// which only allows a string value to be returned.}}
Loading history...
17
13
'1000' => 'Se recibió la respuesta de la petición de forma exitosa',
18
13
'1001' => 'No existen peticiones de cancelación en espera de respuesta para el UUID',
19
13
'1002' => 'Ya se recibió una respuesta para la petición de cancelación del UUID',
20
13
'1003' => 'El sello no corresponde al RFC receptor',
21
13
'1004' => 'Existen más de una petición de cancelación para el mismo UUID',
22
13
'1005' => 'El UUID es nulo o no posee el formato correcto',
23
13
'1006' => 'Se rebasó el número máximo de solicitudes permitidas',
24
13
];
25
}
26
27
2
public function getEntryValueOnUndefined(): string
The expression return 'Respuesta del SAT desconocida' returns the type string which is incompatible with the return type mandated by Eclipxe\MicroCatalog\Mic...EntryValueOnUndefined() of Eclipxe\MicroCatalog\TEntry.
In the issue above, the returned value is violating the contract defined by the
mentioned interface.
Let's take a look at an example:
interfaceHasName{/** @return string */publicfunctiongetName();}className{public$name;}classUserimplementsHasName{/** @return string|Name */publicfunctiongetName(){returnnewName('foo');// This is a violation of the ``HasName`` interface// which only allows a string value to be returned.}}
In the issue above, the returned value is violating the contract defined by the mentioned interface.
Let's take a look at an example: