1--TEST--
2callable type hint#002 - Reflection
3--FILE--
4<?php
5
6class bar {
7    static function foo(callable $arg) {}
8}
9function foo(callable $bar) {
10}
11$closure = function (callable $arg) {};
12
13$rf = new ReflectionFunction("foo");
14var_dump($rf->getParameters()[0]->isCallable());
15
16$rm = new ReflectionMethod("bar", "foo");
17var_dump($rm->getParameters()[0]->isCallable());
18
19$rc = new ReflectionFunction($closure);
20var_dump($rc->getParameters()[0]->isCallable());
21
22?>
23--EXPECT--
24bool(true)
25bool(true)
26bool(true)
27
28