Skip to content

Commit

Permalink
Callable can match change
Browse files Browse the repository at this point in the history
  • Loading branch information
defrag committed May 22, 2014
1 parent a9d72c0 commit 259ce06
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 259ce06

Please sign in to comment.