Skip to content
This repository has been archived by the owner on Nov 7, 2020. It is now read-only.

Commit

Permalink
Typecast long id to int will cause issue.
Browse files Browse the repository at this point in the history
The current pintrest id's having length like this one
(641763084339350760). The typecastign will lead this number to
2147483647 as this is max valie of integer type.
So removed typecasting.

You can check following php code for reference
<?php
$number = '641763084339350760';
echo $number.'<br/>';
echo (int)$number.'<br/>';
?>
  • Loading branch information
shailesh-daund committed Sep 13, 2017
1 parent 702f46a commit b8a93d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Pinterest/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ public function createPin($boardId, $note, Image $image, $link = null)
}

$params = array(
'board' => (int) $boardId,
'board' => $boardId,
'note' => (string) $note,
);

Expand Down

0 comments on commit b8a93d7

Please sign in to comment.