Apparently this does not return true for callback arguments to many of the internal functions, such as array_map and array_walk.
(PHP 5 >= 5.4.0, PHP 7)
ReflectionParameter::isCallable — Returns whether parameter MUST be callable
Esta função está OBSOLETA desde o PHP 8.0.0. Depender dessa função é altamente desencorajado.
Esta função não está documentada; somente a lista de argumentos está disponível.
Esta função não possui parâmetros.
Returns true
if the parameter is callable, false
if it is
not or null
on failure.
Apparently this does not return true for callback arguments to many of the internal functions, such as array_map and array_walk.