Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3750941
D2162.id5449.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1000 B
Referenced Files
None
Subscribers
None
D2162.id5449.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 18, 04:49 (20 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2250156
Default Alt Text
D2162.id5449.diff (1000 B)
Attached To
Mode
D2162: Address File and CodeFile inheritance issues
Attached
Detach File
Event Timeline
Log In to Comment