X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/0fef6d04b13ead8ded7ce2bb73b617f5409890b9..ed0a31d7a909f78a031e955c87ae55323b6f7ba8:/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]);