Fix bug using array $baseDir

* Corrected issue resulting from array constructor
* Corrected issue resulting from invalid clean-up of references
This commit is contained in:
Craig Bass 2013-11-14 18:07:42 +00:00
parent c7ee33a84d
commit 3ee0e13caf

View File

@ -61,8 +61,8 @@ class FilesystemLoader implements Loader
$baseDirs = array(rtrim(realpath($baseDirs), '/')); $baseDirs = array(rtrim(realpath($baseDirs), '/'));
} else { } else {
foreach ($baseDirs as &$dir) { foreach ($baseDirs as &$dir) {
$dir = array(rtrim(realpath($dir), '/')); $dir = rtrim(realpath($dir), '/');
} } unset( $dir );
} }
$this->_baseDir = $baseDirs; $this->_baseDir = $baseDirs;