A bug in documentation $itemMatcher = \Knp\Menu\Matcher\Matcher(); missing new
PeterZhukov opened this issue · comments
Peter Zhukov commented
Threre is a bug in documentation: https://github.com/KnpLabs/KnpMenu/blob/master/doc/04-Iterators.md
$itemMatcher = \Knp\Menu\Matcher\Matcher();
should be
$itemMatcher = new \Knp\Menu\Matcher\Matcher();
Christophe Coevoet commented
Can you send a pull request fixing the doc ? this way, you would get authorship on the fix.
Peter Zhukov commented
I'm sorry, I'm a newbie to github workflow, so by now I can't.
Christophe Coevoet commented
Well, for such a small documentation change, you can do it in the github interface directly (click on the edit button when looking at this file)
Peter Zhukov commented
Ok, done.