소스 검색

Fix missing slash

Joachim M. Giæver 5 년 전
부모
커밋
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);
     }
 
     /**