Page MenuHomeDevCentral

D2162.diff
No OneTemporary

D2162.diff

diff --git a/src/IO/File.php b/src/IO/File.php
--- a/src/IO/File.php
+++ b/src/IO/File.php
@@ -19,7 +19,7 @@
}
public static function from (string $path) : self {
- return new self($path);
+ return new static($path);
}
///
@@ -68,22 +68,4 @@
return pathinfo($this->path, PATHINFO_EXTENSION);
}
- ///
- /// Include methods
- ///
-
- public function tryInclude () : bool {
- if (!$this->canBeIncluded()) {
- return false;
- }
-
- include($this->path);
-
- return true;
- }
-
- public function canBeIncluded () : bool {
- return $this->exists() &&$this->isReadable();
- }
-
}
diff --git a/src/Reflection/CodeFile.php b/src/Reflection/CodeFile.php
--- a/src/Reflection/CodeFile.php
+++ b/src/Reflection/CodeFile.php
@@ -15,7 +15,7 @@
return false;
}
- include($this->getFilename());
+ include($this->getPath());
return true;
}

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 18, 03:01 (21 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2250156
Default Alt Text
D2162.diff (1000 B)

Event Timeline