Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing argument 1,2 for closure in beforeMatch #1556

Closed
sorbing opened this issue Nov 14, 2013 · 3 comments
Closed

Missing argument 1,2 for closure in beforeMatch #1556

sorbing opened this issue Nov 14, 2013 · 3 comments

Comments

@sorbing
Copy link

sorbing commented Nov 14, 2013

I get error: Warning: Missing argument 1,2 for closure when using beforeMatch:

$router->add('/test')->beforeMatch(function($uri, $route) {
  return true;
});

Why not passed parameters $uri and $route to callable function?

@ghost
Copy link

ghost commented Dec 12, 2013

@sorbing fixed now, could you please check?

@sorbing
Copy link
Author

sorbing commented Dec 12, 2013

Yeah! It's works fine) Thanks!
P.S. When the scheduled release of version 1.2.5?

@phalcon
Copy link
Collaborator

phalcon commented Dec 19, 2013

@sorbing In about 2 weeks

@phalcon phalcon closed this as completed Dec 19, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant