Sync: fix typo, remove useless cast
This commit is contained in:
parent
956708475e
commit
ae45844bac
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue