Skip to content

Commit

Permalink
Merge pull request #653 from andrey-helldar/patch/2024-10-05/02-16
Browse files Browse the repository at this point in the history
TypeError: Cannot assign int to property `Entity::$customEmojiId` of type ?string
  • Loading branch information
fabio-ivona authored Oct 5, 2024
2 parents 00a95a5 + 550f99a commit 95cb4d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DTO/Entity.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public static function fromArray(array $data): Entity
}

if (isset($data['custom_emoji_id'])) {
$entity->customEmojiId = $data['custom_emoji_id'];
$entity->customEmojiId = (string) $data['custom_emoji_id'];
}

return $entity;
Expand Down

0 comments on commit 95cb4d2

Please sign in to comment.