laravel/laravel — Issue #339: [3.0] Routes with default parameters not working correctly
Author: kbanman
Created: 2012-02-15 22:58:09+00:00
State: open

Example route:

```php

Route::any('login/(:any?)', function($method = 'index')
{
// If no second segment was specified, $method is null
});
```

Seems the router is passing `null` as the callback argument instead of no argument at all. This worked correctly prior to the routing overhaul.