Skip to content

Commit

Permalink
Merge pull request #380 from kdrmlhcn/master
Browse files Browse the repository at this point in the history
Cast profile ID to integer in setId method for data consistency
  • Loading branch information
pgrimaud authored Apr 25, 2024
2 parents 821d236 + 7a8c564 commit 7626efb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Instagram/Hydrator/ProfileAlternativeHydrator.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function __construct()
*/
public function hydrateProfile(\StdClass $data): void
{
$this->profile->setId($data->pk);
$this->profile->setId((int)$data->pk);
$this->profile->setUserName($data->username);
$this->profile->setFullName($data->full_name);
$this->profile->setFollowers($data->follower_count ?? 0);
Expand Down

0 comments on commit 7626efb

Please sign in to comment.