(string)$action, 'ticket_id' => (int)$ticketId, ], JSON_UNESCAPED_UNICODE); $context = stream_context_create([ 'http' => [ 'method' => 'POST', 'header' => "Content-Type: application/json\r\n", 'content' => $payload, 'timeout' => self::TIMEOUT, 'ignore_errors' => true, ], ]); try { $result = @file_get_contents(self::PUSH_URL, false, $context); return $result !== false; } catch (\Throwable $e) { return false; } } }