Skip to content

Commit b30c548

Browse files
authored
use array() for compatibility
1 parent b274469 commit b30c548

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Qiniu/Zone.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ private function hostCacheFromFile()
141141

142142
$bucketHosts = file_get_contents($path);
143143
$hostCache = json_decode($bucketHosts, true);
144-
$this->hostCache = is_null($hostCache) ? [] : $hostCache;
144+
$this->hostCache = is_null($hostCache) ? array() : $hostCache;
145145
return;
146146
}
147147

0 commit comments

Comments
 (0)