Symfony: Ezt a függvényt javítsd ki, hogy helyes legyen:

    public function Insert(string $event, ?array $details=null):void
    {
        $sql = "INSERT INTO upsell2.user_event ('uid', 'kut_id', 'contract_id', 'shop', 'datetime', 'ip', 'event', 'sessid', 'user_agent'
                VALUES ('112233', '42112233', '3112233', 'shop', NOW()), '11.22.33.444', :event, 'justForTest', 'justForTest Browser')";
        $eventId = \Drupal::database()->query($sql, [
            'event' => $event
        ]);
        if (is_array($details)) {
            $sqlDetails = "INSERT INTO upsell2.user_event_data ('user_event_id', 'data'
                VALUES (:eventId, :details)";
            \Drupal::database()->query($sqlDetails, [
                'eventId' => $eventId,
                'details' => json_encode($details)
            ]);
        }
    }