summaryrefslogtreecommitdiff
path: root/Zend/tests/type_declarations/callable_003.phpt
blob: b5e722cae3b14401dc3e678a2225c547325b7f98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--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"