Narcissus 5年前

修改理由:

注视错误

相关信息:


此投稿已在 5年前 合并。

内容修改:

红色背景 为原始内容

绿色背景 为新增或者修改的内容

OldNewDifferences
8282   {
8383       $url = 'https://restapi.amap.com/v3/weather/weatherInfo';
8484
85        // 1. 对 `$format` 与 `$extensions` 参数进行检查,不在范围内的抛出异常。
 85       // 1. 对 `$format` 与 `$type` 参数进行检查,不在范围内的抛出异常。
8686       if (!\in_array($format, ['xml', 'json'])) {
8787           throw new InvalidArgumentException('Invalid response format: '. $format);
8888       }