@@ -220,10 +220,10 @@ public function getWeatherForecast($query, $units = 'imperial', $lang = 'en', $a
220220
221221 if ($ days <= 5 ) {
222222 $ answer = $ this ->getRawHourlyForecastData ($ query , $ units , $ lang , $ appid , 'xml ' );
223- } else if ($ days <= 14 ) {
223+ } else if ($ days <= 16 ) {
224224 $ answer = $ this ->getRawDailyForecastData ($ query , $ units , $ lang , $ appid , 'xml ' , $ days );
225225 } else {
226- throw new \InvalidArgumentException ('Error: forecasts are only available for the next 14 days. $days must be lower than 15 . ' );
226+ throw new \InvalidArgumentException ('Error: forecasts are only available for the next 16 days. $days must be lower than 17 . ' );
227227 }
228228
229229 try {
@@ -440,10 +440,10 @@ public function getRawHourlyForecastData($query, $units = 'imperial', $lang = 'e
440440 *
441441 * @api
442442 */
443- public function getRawDailyForecastData ($ query , $ units = 'imperial ' , $ lang = 'en ' , $ appid = '' , $ mode = 'xml ' , $ cnt = 14 )
443+ public function getRawDailyForecastData ($ query , $ units = 'imperial ' , $ lang = 'en ' , $ appid = '' , $ mode = 'xml ' , $ cnt = 16 )
444444 {
445- if ($ cnt > 14 ) {
446- throw new \InvalidArgumentException ('$cnt must be 14 or below! ' );
445+ if ($ cnt > 16 ) {
446+ throw new \InvalidArgumentException ('$cnt must be 16 or below! ' );
447447 }
448448 $ url = $ this ->buildUrl ($ query , $ units , $ lang , $ appid , $ mode , $ this ->weatherDailyForecastUrl ) . "&cnt= $ cnt " ;
449449
0 commit comments