Skip to content

Commit c4bdd45

Browse files
Merge pull request #67 from michaelachrisco/fix-ci-8.3
Fix PHP 8.3+
2 parents 0481547 + bfc0cf4 commit c4bdd45

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/ReadOnlyException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ class ReadOnlyException extends \RuntimeException
88
* @param string $modelClassName
99
* {@inheritDoc}
1010
*/
11-
public function __construct(string $functionName, string $modelClassName, int $code = 0, \Throwable $previous = null)
11+
public function __construct(string $functionName, string $modelClassName, int $code = 0, ?\Throwable $previous = null)
1212
{
1313
$message = sprintf('Calling [%s] method on read-only model [%s] is not allowed.', $functionName, $modelClassName);
1414
parent::__construct($message, $code, $previous);
1515
}
16-
}
16+
}

0 commit comments

Comments
 (0)