You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @param array $result (Opt)(Pass by reference) - If this parameter is given the result of the CURL call will be filled here. The response is an associative array.
64
-
*
65
-
* @throws PagerDutyException - If status code == 400
66
+
* @param array|null $result (Opt) (Pass by reference) - If this parameter is given, the result of the CURL call will be filled here. The response is an associative array.
66
67
*
67
68
* @return int - HTTP response code
68
69
* 202 - Event Processed
69
70
* 400 - Invalid Event. Throws a PagerDutyException
70
71
* 403 - Rate Limited. Slow down and try again later.
72
+
*
73
+
* @throws PagerDutyException - If status code == 400
74
+
* @noinspection PhpUnused
71
75
*/
72
-
publicfunctionsend(&$result = null)
76
+
publicfunctionsend(?array&$result = null): int
73
77
{
74
78
$jsonStr = json_encode($this);
75
79
@@ -93,40 +97,44 @@ public function send(&$result = null)
0 commit comments