Sync: fix typo, remove useless cast

This commit is contained in:
Thomas Gelf 2022-08-29 08:53:49 +02:00
parent 956708475e
commit ae45844bac
1 changed files with 2 additions and 2 deletions

View File

@ -367,13 +367,13 @@ class Sync
if ($listId === null) { if ($listId === null) {
throw new InvalidArgumentException( throw new InvalidArgumentException(
'Cannot sync datalist entry without list_ist' 'Cannot sync datalist entry without list_id'
); );
} }
$no = []; $no = [];
foreach ($this->objects as $k => $o) { foreach ($this->objects as $k => $o) {
if ((int) $o->get('list_id') !== (int) $listId) { if ((int) $o->get('list_id') !== $listId) {
$no[] = $k; $no[] = $k;
} }
} }