Skip to content

Commit

Permalink
Cast profile ID to integer in setId method for data consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
kdrmlhcn committed Apr 24, 2024
1 parent 821d236 commit 7a8c564
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 7a8c564

Please sign in to comment.