Skip to content

Commit 2fb0d86

Browse files
authored
ticketid is a string, not an int, in Uploader::sendFile()
Cast `ticketid` to a string instead of an int. Fixes #71
1 parent 4f98fde commit 2fb0d86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Uploader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ protected function sendFile($filename, $params)
135135
$uploadResponse['originalsecret'] = (string)$xml->photoid['originalsecret'];
136136
}
137137
if (isset($xml->ticketid)) {
138-
$uploadResponse['ticketid'] = (int)$xml->ticketid;
138+
$uploadResponse['ticketid'] = (string)$xml->ticketid;
139139
}
140140
if (isset($xml->err)) {
141141
$uploadResponse['code'] = (int)$xml->err['code'];

0 commit comments

Comments
 (0)