src/includes/classes/Core/Utils/Serializer.php
public function serializeClosure(\Closure $Closure, bool $faster = false): string
    {
        // NOTE: No marker; i.e., so this can be called stand-alone if necessary.
        return $this->{$faster ? 'ClosureTokenSerializer' : 'ClosureAstSerializer'}->serialize($Closure);
    }
public function serializeClosure(\Closure $Closure, bool $faster = false): string
    {
        // NOTE: No marker; i.e., so this can be called stand-alone if necessary.
        return $this->{$faster ? 'ClosureTokenSerializer' : 'ClosureAstSerializer'}->serialize($Closure);
    }
Serialize closure.

@since 160712 Closure utils.

@param \Closure $Closure A closure.
@param bool     $faster  Use faster serializer?

@return string Serialized closure.