Merge pull request #38 from edgrosvenor/php-8.1

Fix touch signtaure
This commit is contained in:
michaelachrisco 2022-02-13 16:02:33 -08:00 committed by GitHub
commit 96953c0b9c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -158,9 +158,10 @@ trait ReadOnlyTrait
/**
* 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());
}