aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2013-07-21 09:01:50 +0200
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2013-07-21 09:01:50 +0200
commit955a28cb1ad406d59d41292c425553fd6b670f42 (patch)
tree71af01aa5f3ccca0c5bf62d0625acb9e2f78f3cf
parentec4497d78ad7a2a397cae61458f76fb5a52ee04a (diff)
downloadIterator-955a28cb1ad406d59d41292c425553fd6b670f42.zip
Iterator-955a28cb1ad406d59d41292c425553fd6b670f42.tar.gz
Iterator-955a28cb1ad406d59d41292c425553fd6b670f42.tar.bz2
Use self instead of static since it is private.
-rw-r--r--Recursive/Directory.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/Recursive/Directory.php b/Recursive/Directory.php
index e4115c8..42e37fd 100644
--- a/Recursive/Directory.php
+++ b/Recursive/Directory.php
@@ -88,10 +88,10 @@ class Directory extends \RecursiveDirectoryIterator {
else
parent::__construct($path, $flags);
- if(null !== static::$_handlePath) {
+ if(null !== self::$_handlePath) {
- $this->_relativePath = static::$_handlePath;
- static::$_handlePath = null;
+ $this->_relativePath = self::$_handlePath;
+ self::$_handlePath = null;
}
else
$this->_relativePath = $path;
@@ -134,8 +134,8 @@ class Directory extends \RecursiveDirectoryIterator {
*/
public function getChildren ( ) {
- static::$_handlePath = $this->getRelativePath();
- $out = parent::getChildren();
+ self::$_handlePath = $this->getRelativePath();
+ $out = parent::getChildren();
if($out instanceof \RecursiveDirectoryIterator)
$out->setSplFileInfoClass($this->_splFileInfoClass);