Callback
final class Callback
PHP callable tools.
Methods
static Closure
static mixed
static mixed
static mixed
invokeSafe(string $function, array $args, callable $onError)
Invokes internal PHP function with own error handler.
static callable
check($callable, bool $syntax = false)
No description
static string
toString($callable)
No description
static ReflectionFunctionAbstract
toReflection($callable)
No description
static bool
isStatic(callable $callable)
No description
Details
at line 27
static Closure
closure(string|object|callable $callable, string $method = null)
deprecated
deprecated
No description
at line 42
static mixed
invoke($callable, ...$args)
deprecated
deprecated
Invokes callback.
at line 55
static mixed
invokeArgs($callable, array $args = [])
deprecated
deprecated
Invokes callback with an array of parameters.
at line 67
static mixed
invokeSafe(string $function, array $args, callable $onError)
Invokes internal PHP function with own error handler.
at line 94
static callable
check($callable, bool $syntax = false)
No description
at line 106
static string
toString($callable)
No description
at line 120
static ReflectionFunctionAbstract
toReflection($callable)
No description
at line 138
static bool
isStatic(callable $callable)
No description
at line 148
static callable
unwrap(Closure $closure)
internal |
Unwraps closure created by Closure::fromCallable()
Traits
Static class.