private static function processParams(array $message): string
    {
        $msg_type = count($message);
        if($msg_type==1) {
            return (string) $message[0];
        } else if($msg_type<1) {
            return "";
        } else {
            $params = $message;
            $message = array_shift($params);
            return sprintf($message, ...$params);
        }
    }
private static function processParams(array $message): string
    {
        $msg_type = count($message);
        if($msg_type==1) {
            return (string) $message[0];
        } else if($msg_type<1) {
            return "";
        } else {
            $params = $message;
            $message = array_shift($params);
            return sprintf($message, ...$params);
        }
    }
private static function processParams ( array $ message ) : string { $ msg_type = count ( $ message ) ; if ( $ msg_type == 1 ) { return ( string ) $ message [ 0 ] ; } else if ( $ msg_type < 1 ) { return "" ; } else { $ params = $ message ; $ message = array_shift ( $ params ) ; return sprintf ( $ message , ... $ params ) ; } }
A helper method to process log parameters.

@param array $message Message parametrized similarly to how sprintf works.

@return void
A helper method to process log parameters .