Skip to content
Browse files

Fix PHP Parse error when running tests on PHP5.3.0 < : use eval to de…

…clare a lambda function.
  • Loading branch information...
1 parent dc8c198 commit fd10ee6521be04f6174981c8fe06c013d12f7832 Fabrice Luraine committed with CBeerta
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/apps/03-routing.php
View
4 tests/apps/03-routing.php
@@ -44,9 +44,9 @@ static public function staticMethod($value=1)
dispatch('/route4', 'MyController::staticMethod');
if(version_compare(PHP_VERSION, '5.3.0') >= 0)
{
- dispatch('/route-lambda', function(){
+ eval("dispatch('/route-lambda', function(){
return 'LAMBDA CALL';
- });
+ });");
}
/* parameterized routes */

0 comments on commit fd10ee6

Please sign in to comment.
Something went wrong with that request. Please try again.