瀏覽代碼

Fix missing slash

Joachim M. Giæver 4 年之前
父節點
當前提交
1d2b2e765e
共有 1 個文件被更改,包括 2 次插入2 次删除
  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);
     }
 
     /**