* Fix function getImageSize return value type array bug.

This commit is contained in:
wangyuting
2023-12-13 16:23:50 +08:00
parent e07f2ce097
commit f0fbfad2f7
+3 -3
View File
@@ -951,11 +951,11 @@ class fileModel extends model
/**
* Get image size.
*
* @param object $file
* @param object $file
* @access public
* @return array
* @return array|false
*/
public function getImageSize(object $file): array
public function getImageSize(object $file): array|false
{
if(empty($file->realPath)) return array();
if($this->config->file->storageType == 'fs')