Skip to content

Commit

Permalink
Update ProfileFields getProfileFieldIdByKey()
Browse files Browse the repository at this point in the history
key is a string so this function should expect a string and not an int.
  • Loading branch information
blackcoder87 committed Dec 8, 2024
1 parent b12e064 commit be7ef5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/modules/user/mappers/ProfileFields.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ public function getProfileFieldById(int $id): ?ProfileFieldModel
/**
* Returns a ProfileField model found by the key.
*
* @param int $key
* @param string $key
* @return null|ProfileFieldModel
*/
public function getProfileFieldIdByKey(int $key): ?ProfileFieldModel
public function getProfileFieldIdByKey(string $key): ?ProfileFieldModel
{
$profileFieldRow = $this->db()->select('*')
->from('profile_fields')
Expand Down

0 comments on commit be7ef5b

Please sign in to comment.