X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/ba086d5c3cb0ea91d97f2575abaa95075d733cc5..48b601a1a00dc70143e2b07c44d55597a426236e:/Command/WeatherCommand.php diff --git a/Command/WeatherCommand.php b/Command/WeatherCommand.php index c6fe6fc..b499390 100644 --- a/Command/WeatherCommand.php +++ b/Command/WeatherCommand.php @@ -265,7 +265,7 @@ class WeatherCommand extends DoctrineCommand { //Iterate on each link containing data foreach($sx->xpath('//a[contains(@class,"daily-forecast-card")]') as $node) { //Get date - $dsm = trim($node->div[0]->h2[0]->span[1]); + $dsm = trim((string)$node->div[0]->h2[0]->span[1]); //Get temperature $temperature = str_replace('°', '', (string)$node->div[0]->div[0]->span[0]);