1--TEST--
2callable type#001
3--FILE--
4<?php
5
6class bar {
7    function baz() {}
8    static function foo() {}
9}
10function foo(callable $bar) {
11    var_dump($bar);
12}
13$closure = function () {};
14
15foo("strpos");
16foo("foo");
17foo(array("bar", "baz"));
18foo(array("bar", "foo"));
19foo($closure);
20--EXPECTF--
21string(6) "strpos"
22string(3) "foo"
23
24Deprecated: Non-static method bar::baz() should not be called statically in %s on line %d
25array(2) {
26  [0]=>
27  string(3) "bar"
28  [1]=>
29  string(3) "baz"
30}
31array(2) {
32  [0]=>
33  string(3) "bar"
34  [1]=>
35  string(3) "foo"
36}
37object(Closure)#%d (0) {
38}
39