Skip to content

Commit 7626efb

Browse files
authored
Merge pull request #380 from kdrmlhcn/master
Cast profile ID to integer in setId method for data consistency
2 parents 821d236 + 7a8c564 commit 7626efb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Instagram/Hydrator/ProfileAlternativeHydrator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function __construct()
2626
*/
2727
public function hydrateProfile(\StdClass $data): void
2828
{
29-
$this->profile->setId($data->pk);
29+
$this->profile->setId((int)$data->pk);
3030
$this->profile->setUserName($data->username);
3131
$this->profile->setFullName($data->full_name);
3232
$this->profile->setFollowers($data->follower_count ?? 0);

0 commit comments

Comments
 (0)