Skip to content

Commit

Permalink
Update InteractWithScore.php
Browse files Browse the repository at this point in the history
  • Loading branch information
milwad-dev committed Nov 26, 2024
1 parent 89d6986 commit 4fd0a26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Traits/InteractWithScore.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function scores(): \Illuminate\Database\Eloquent\Relations\HasMany
/**
* Create score.
*/
public function addScore(Model $scoreable, $score = 1, int|null $userId = null)
public function addScore(Model $scoreable, int $score = 1, int|null $userId = null)
{
return Score::query()->create([
'scoreable_id' => $scoreable->getKey(),
Expand Down

0 comments on commit 4fd0a26

Please # to comment.