1 | <?php |
||
9 | final class CdnManager |
||
10 | { |
||
11 | |||
12 | private $auth; |
||
13 | private $server; |
||
14 | |||
15 | public function __construct(Auth $auth) |
||
20 | |||
21 | public function refreshUrls($urls) |
||
25 | |||
26 | public function refreshDirs($dirs) |
||
30 | |||
31 | /** |
||
32 | * @param array $urls 待刷新的文件链接数组 |
||
33 | * |
||
34 | * @return array 刷新的请求回复和错误,参考 examples/cdn_manager.php 代码 |
||
35 | * @link http://developer.qiniu.com/article/fusion/api/refresh.html |
||
36 | */ |
||
37 | public function refreshUrlsAndDirs($urls, $dirs) |
||
57 | |||
58 | /** |
||
59 | * @param array $urls 待预取的文件链接数组 |
||
60 | * |
||
61 | * @return array 预取的请求回复和错误,参考 examples/cdn_manager.php 代码 |
||
62 | * |
||
63 | * @link https://developer.qiniu.com/fusion/api/1227/file-prefetching |
||
64 | */ |
||
65 | public function prefetchUrls($urls) |
||
78 | |||
79 | /** |
||
80 | * @param array $domains 待获取带宽数据的域名数组 |
||
81 | * @param string $startDate 开始的日期,格式类似 2017-01-01 |
||
82 | * @param string $endDate 结束的日期,格式类似 2017-01-01 |
||
83 | * @param string $granularity 获取数据的时间间隔,可以是 5min, hour 或者 day |
||
84 | * |
||
85 | * @return array 带宽数据和错误信息,参考 examples/cdn_manager.php 代码 |
||
86 | * |
||
87 | * @link http://developer.qiniu.com/article/fusion/api/traffic-bandwidth.html |
||
88 | */ |
||
89 | public function getBandwidthData($domains, $startDate, $endDate, $granularity) |
||
101 | |||
102 | /** |
||
103 | * @param array $domains 待获取流量数据的域名数组 |
||
104 | * @param string $startDate 开始的日期,格式类似 2017-01-01 |
||
105 | * @param string $endDate 结束的日期,格式类似 2017-01-01 |
||
106 | * @param string $granularity 获取数据的时间间隔,可以是 5min, hour 或者 day |
||
107 | * |
||
108 | * @return array 流量数据和错误信息,参考 examples/cdn_manager.php 代码 |
||
109 | * |
||
110 | * @link http://developer.qiniu.com/article/fusion/api/traffic-bandwidth.html |
||
111 | */ |
||
112 | public function getFluxData($domains, $startDate, $endDate, $granularity) |
||
124 | |||
125 | /** |
||
126 | * @param array $domains 待获取日志下载链接的域名数组 |
||
127 | * @param string $logDate 获取指定日期的日志下载链接,格式类似 2017-01-01 |
||
128 | * |
||
129 | * @return array 日志下载链接数据和错误信息,参考 examples/cdn_manager.php 代码 |
||
130 | * |
||
131 | * @link http://developer.qiniu.com/article/fusion/api/log.html |
||
132 | */ |
||
133 | public function getCdnLogList($domains, $logDate) |
||
143 | |||
144 | private function post($url, $body) |
||
155 | |||
156 | /** |
||
157 | * 构建时间戳防盗链鉴权的访问外链 |
||
158 | * |
||
159 | * @param string $host 带访问协议的域名 |
||
160 | * @param string $fileName 原始文件名,不需要urlencode |
||
161 | * @param string $queryStringArray 查询参数命名数组,不需要urlencode |
||
162 | * @param string $encryptKey 时间戳防盗链密钥 |
||
163 | * @param string $deadline 链接有效期时间戳(以秒为单位) |
||
164 | * |
||
165 | * @return string 带鉴权信息的资源外链,参考 examples/cdn_manager.php 代码 |
||
166 | */ |
||
167 | public static function createTimestampAntiLeechUrl($host, $fileName, $queryStringArray, $encryptKey, $deadline) |
||
195 | } |
||
196 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: