Skip to content

Commit

Permalink
Merge pull request #12 from defrag/fix/callable-can-match-fix
Browse files Browse the repository at this point in the history
Callable can match change
  • Loading branch information
norberttech committed May 23, 2014
2 parents a9d72c0 + 259ce06 commit e2de5f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Coduo/PHPMatcher/Matcher/CallbackMatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ public function match($value, $pattern)
*/
public function canMatch($pattern)
{
return is_object($pattern) && $pattern instanceof \Closure;
return is_callable($pattern);
}
}

0 comments on commit e2de5f3

Please sign in to comment.