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