controller: add type casts for getPreviewFromImageList
parent
e19302c927
commit
b7cfaca2d8
|
@ -90,8 +90,8 @@ class PlacesController extends ApiBase
|
||||||
shuffle($list);
|
shuffle($list);
|
||||||
|
|
||||||
// Get preview from image list
|
// Get preview from image list
|
||||||
return $this->getPreviewFromImageList(array_map(static function ($item) {
|
return $this->getPreviewFromImageList(array_map(static function (&$item) {
|
||||||
return $item['fileid'];
|
return (int) $item['fileid'];
|
||||||
}, $list));
|
}, $list));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -92,8 +92,8 @@ class TagsController extends ApiBase
|
||||||
shuffle($list);
|
shuffle($list);
|
||||||
|
|
||||||
// Get preview from image list
|
// Get preview from image list
|
||||||
return $this->getPreviewFromImageList(array_map(static function ($item) {
|
return $this->getPreviewFromImageList(array_map(static function (&$item) {
|
||||||
return $item['fileid'];
|
return (int) $item['fileid'];
|
||||||
}, $list));
|
}, $list));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue