summaryrefslogtreecommitdiff
path: root/Zend/tests/type_declarations/callable_003.phpt
blob: 3489c32d37a31689bd0453bd3550f7f72e910ef5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--TEST--
callable type#003
--FILE--
<?php

function foo(callable $a, $b, callable $c) {
	var_dump($a, $b, $c);
}
function bar(callable $a = null) {
	var_dump($a);
}

foo("strpos", 123, "strpos");
bar("substr");
?>
--EXPECT--
string(6) "strpos"
int(123)
string(6) "strpos"
string(6) "substr"