1--TEST--
2callable type#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--EXPECTF--
24Deprecated: Method ReflectionParameter::isCallable() is deprecated in %s on line %d
25bool(true)
26
27Deprecated: Method ReflectionParameter::isCallable() is deprecated in %s on line %d
28bool(true)
29
30Deprecated: Method ReflectionParameter::isCallable() is deprecated in %s on line %d
31bool(true)
32