Skip to content

Commit

Permalink
feat!: add type
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammad-Alavi committed Jun 4, 2023
1 parent cf6a176 commit 789606b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Traits/HashIdTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ trait HashIdTrait
*
* Will be used by the Eloquent Models (since it's used as trait there).
*
* @param null $field The field of the model to be hashed
* @param string|null $field The field of the model to be hashed
* @return string|null
*/
public function getHashedKey($field = null): ?string
public function getHashedKey(?string $field = null): ?string
{
// if no key is set, use the default key name (i.e., id)
if ($field === null) {
Expand Down

0 comments on commit 789606b

Please sign in to comment.