Skip to content

Commit e0b38a4

Browse files
J9remmrflos
authored andcommitted
fix(ExternalBazarService): getEntries return array insteadof ?array
1 parent 2178384 commit e0b38a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/bazar/services/ExternalBazarService.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ public function getFormsForBazarListe(array $externalIds, bool $refresh = false)
207207
* @param array $params
208208
* @return array|null $entries
209209
*/
210-
public function getEntries($params):?array
210+
public function getEntries($params): array
211211
{
212212
// Merge les paramètres passé avec des paramètres par défaut
213213
$params = array_merge(
@@ -315,7 +315,7 @@ public function getEntries($params):?array
315315
return $entries;
316316
} elseif ($this->debug) {
317317
trigger_error(get_class($this)."::getEntries: "._t('BAZ_EXTERNAL_SERVICE_BAD_RECEIVED_ENTRIES'));
318-
return null;
318+
return [];
319319
}
320320
return [];
321321
}

0 commit comments

Comments
 (0)