miladrahimi / phprouter

PhpRouter is a full-featured yet very fast HTTP URL router for PHP projects
MIT License
195 stars 17 forks source link

Any method not working #10

Closed ghost closed 6 years ago

ghost commented 6 years ago

Any method isn't working, give me "Methods must be set in" error $router->any("/", function () { echo 'Hello'; });

And i liked this library, very lite and perfect syntax.

Thanks...

miladrahimi commented 6 years ago

Your pull request is merged and new version v2.3.6 is released now. Of course, the new version which is coming tomorrow, you should consider an update, it's fully redesigned and use Psr7 HTTP request and response, unit tests are also used.