KnpLabs / KnpMenu

Menu Library for PHP

Home Page:https://knplabs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A bug in documentation $itemMatcher = \Knp\Menu\Matcher\Matcher(); missing new

PeterZhukov opened this issue · comments

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();

Can you send a pull request fixing the doc ? this way, you would get authorship on the fix.

I'm sorry, I'm a newbie to github workflow, so by now I can't.

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)

Ok, done.