Skip to content

Commit 30739d8

Browse files
author
marcel corso gonzalez
authored
Merge pull request #99 from chrisminett/signedrequest-date-int
SignedRequest request timestamp value must be an int
2 parents 1fed1c2 + c34c82a commit 30739d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MessageBird/Objects/SignedRequest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public static function createFromGlobals()
5252
$body = file_get_contents('php://input');
5353
$queryParameters = $_GET;
5454
$requestTimestamp = isset($_SERVER['HTTP_MESSAGEBIRD_REQUEST_TIMESTAMP']) ?
55-
$_SERVER['HTTP_MESSAGEBIRD_REQUEST_TIMESTAMP'] : null;
55+
(int)$_SERVER['HTTP_MESSAGEBIRD_REQUEST_TIMESTAMP'] : null;
5656
$signature = isset($_SERVER['HTTP_MESSAGEBIRD_SIGNATURE']) ?
5757
$_SERVER['HTTP_MESSAGEBIRD_SIGNATURE'] : null;
5858

0 commit comments

Comments
 (0)