Skip to content

Commit 2225690

Browse files
committed
ensitech-273 fix deprecated
1 parent aac45a7 commit 2225690

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Events/Audited.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class Audited
3636
* @param \Ensi\LaravelAuditing\Contracts\AuditDriver $driver
3737
* @param \Ensi\LaravelAuditing\Contracts\Audit $audit
3838
*/
39-
public function __construct(Auditable $model, AuditDriver $driver, Audit $audit = null)
39+
public function __construct(Auditable $model, AuditDriver $driver, ?Audit $audit = null)
4040
{
4141
$this->model = $model;
4242
$this->driver = $driver;

src/Exceptions/AuditableTransitionException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class AuditableTransitionException extends AuditingException
1616
/**
1717
* {@inheritdoc}
1818
*/
19-
public function __construct($message = '', array $incompatibilities = [], $code = 0, Throwable $previous = null)
19+
public function __construct($message = '', array $incompatibilities = [], $code = 0, ?Throwable $previous = null)
2020
{
2121
parent::__construct($message, $code, $previous);
2222

0 commit comments

Comments
 (0)