Browse Source

Fix missing slash

Joachim M. Giæver 4 years ago
parent
commit
1d2b2e765e
1 changed files with 2 additions and 2 deletions
  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);
     }
 
     /**