phpcr/phpcr — Issue #19: TraversingITemVisitor::TraversingItemVisitor() wrong function definition
Author: dotzoki
Created: 2011-11-09 12:25:12+00:00
State: open

\PHPCR\Util\TraversingItemVisitor @ line 98

```php
public function TraversingItemVisitor($breadthFirst = false, $maxLevel = -1)
```
should be

```php
public function TraversingItemVisitor($breadthFirst = false, $maxDepth = -1)
```

and maybe renaming this function to "__construct()" if it is constructor or even maybe lowercase for the first letter (traversingITemVisitor) or rename if it ain't to be real constructor, to keep things clearer - since it is treated as regular method as of PHP 5.3.3