1
0
Fork 0
mirror of synced 2025-04-01 12:26:11 +03:00

fix return walker

This commit is contained in:
shustrik 2014-02-06 16:18:35 +03:00
parent a6b43b93ac
commit 6fe40b055f

View file

@ -633,10 +633,10 @@ class TreeWalkerChain implements TreeWalker
private function getWalker($walkerClass)
{
$key = array_search($walkerClass, $this->_walkersClasses);
if (isset($this->_walkers[$key])) {
return $this->_walkers[$key];
if (!isset($this->_walkers[$key])) {
$this->_walkers[$key] = new $walkerClass($this->_query, $this->_parserResult, $this->_queryComponents);
}
return new $walkerClass($this->_query, $this->_parserResult, $this->_queryComponents);
return $this->_walkers[$key];
}
}