Joachim M. Giæver 5 rokov pred
rodič
commit
1d2b2e765e
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      src/Yr/Forecast.php

+ 2 - 2
src/Yr/Forecast.php

@@ -84,7 +84,7 @@ final class Forecast {
      * @return \DateTimeImmutable
      */
     public function getLastUpdate(): \DateTimeImmutable {
-        return new DateTimeImmutable((string)$this->xml->meta->lastupdate);
+        return new \DateTimeImmutable((string)$this->xml->meta->lastupdate);
     }
 
     /**
@@ -93,7 +93,7 @@ final class Forecast {
      * @return \DateTimeImmutable
      */
     public function getNextUpdate(): \DateTimeImmutable {
-        return new DateTimeImmutable((string)$this->xml->meta->nextupdate);
+        return new \DateTimeImmutable((string)$this->xml->meta->nextupdate);
     }
 
     /**