Callback
class Callback
PHP callable tools.
Methods
static mixed
invoke($callable, ...$args)
Invokes callback.
static mixed
invokeArgs($callable, array $args = [])
Invokes callback with an array of parameters.
static mixed
invokeSafe($function, array $args, $onError)
Invokes internal PHP function with own error handler.
static callable
check($callable, $syntax = false)
No description
static string
toString($callable)
No description
toReflection($callable)
No description
static bool
isStatic($callable)
No description
Details
at line 25
static Closure
closure($callable, $m = null)
No description
at line 59
static mixed
invoke($callable, ...$args)
Invokes callback.
at line 70
static mixed
invokeArgs($callable, array $args = [])
Invokes callback with an array of parameters.
at line 82
static mixed
invokeSafe($function, array $args, $onError)
Invokes internal PHP function with own error handler.
at line 112
static callable
check($callable, $syntax = false)
No description
at line 127
static string
toString($callable)
No description
at line 144
static ReflectionMethod|ReflectionFunction
toReflection($callable)
No description
at line 170
static bool
isStatic($callable)
No description
at line 181
static callable
unwrap(Closure $closure)
internal |
Unwraps closure created by self::closure()
Traits
Static class.