Skip to content

Commit

Permalink
[] -> array()
Browse files Browse the repository at this point in the history
  • Loading branch information
renatko authored and Josh Lockhart committed Dec 14, 2013
1 parent efb01f2 commit 2938d9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Slim/Route.php
Expand Up @@ -156,7 +156,7 @@ public function setCallable($callable)
{
$matches = [];
if(is_string($callable) && preg_match('!^([^\:]+)\:\:(.+)$!', $callable, $matches)) {
$callable = [new $matches[1], $matches[2]];
$callable = array(new $matches[1], $matches[2]);
}

if (!is_callable($callable)) {
Expand Down

0 comments on commit 2938d9e

Please sign in to comment.