ERROR_CLOSURE_NULL
ERROR_CLOSURE_NULL
Functions for creating lambdas.
createLambda(callable|null $closure, string $closureArgs, \Closure|callable|null $default = null) : callable|null
Convert string lambda to callable function. If callable is passed, return as is.
callable|null | $closure | |
string | $closureArgs | |
\Closure|callable|null | $default |
Both closure and default are null.
Incorrect lambda syntax.
createComparer(callable|integer|null $closure, integer $sortOrder, boolean $isReversed) : callable|string|null
Convert string lambda or SORT_ flags to callable function. Sets isReversed to false if descending is reversed.
callable|integer|null | $closure | |
integer | $sortOrder | |
boolean | $isReversed |
Incorrect lambda syntax.
Incorrect SORT_ flags.
lambdaToSortFlagsAndOrder(callable|string|integer|null $closure, integer|boolean $sortOrder) : callable|string|integer|null
Convert string lambda to SORT_ flags. Convert sortOrder from bool to SORT_ order.
callable|string|integer|null | $closure | |
integer|boolean | $sortOrder |