Skip to content

Commit

Permalink
Merge pull request #38 from edgrosvenor/php-8.1
Browse files Browse the repository at this point in the history
Fix touch signtaure
  • Loading branch information
michaelachrisco authored Feb 14, 2022
2 parents fe372eb + dce4b32 commit 96953c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ReadOnlyTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,10 @@ public function performUpdate(Builder $query, array $options = [])

/**
* Throws ReadOnlyException on touch
* @param string|null $attribute
* @throws ReadOnlyException
*/
public function touch()
public function touch($attribute = null)
{
throw new ReadOnlyException(__FUNCTION__, get_called_class());
}
Expand Down

0 comments on commit 96953c0

Please sign in to comment.