1--TEST-- 2callable type hint#003 3--FILE-- 4<?php 5 6function foo(callable $a, $b, callable $c) { 7 var_dump($a, $b, $c); 8} 9function bar(callable $a = null) { 10 var_dump($a); 11} 12 13foo("strpos", 123, "strpos"); 14bar("substr"); 15?> 16--EXPECT-- 17string(6) "strpos" 18int(123) 19string(6) "strpos" 20string(6) "substr" 21 22