We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a9d72c0 + 259ce06 commit e2de5f3Copy full SHA for e2de5f3
src/Coduo/PHPMatcher/Matcher/CallbackMatcher.php
@@ -17,6 +17,6 @@ public function match($value, $pattern)
17
*/
18
public function canMatch($pattern)
19
{
20
- return is_object($pattern) && $pattern instanceof \Closure;
+ return is_callable($pattern);
21
}
22
0 commit comments