use visited lookup with reference to gain performance
This commit is contained in:
parent
052735d948
commit
2cc5011e2f
@ -1151,7 +1151,7 @@ EOF;
|
|||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
private function hasReference($id, array $arguments, $deep = false, $visited = array())
|
private function hasReference($id, array $arguments, $deep = false, &$visited = array())
|
||||||
{
|
{
|
||||||
foreach ($arguments as $argument) {
|
foreach ($arguments as $argument) {
|
||||||
if (is_array($argument)) {
|
if (is_array($argument)) {
|
||||||
|
Reference in New Issue
Block a user