Skip to content

Commit 11545d3

Browse files
committed
Type & Doc $auditable + Use pint to format
1 parent 4e97b27 commit 11545d3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/AuditableTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
/**
1010
* @property Model $creator
1111
* @property Model $updater
12+
* @property bool $auditable
1213
*/
1314
trait AuditableTrait
1415
{
16+
public bool $auditable = true;
1517

16-
public $auditable = true;
17-
1818
/**
1919
* Boot the audit trait for a model.
2020
*/

tests/Feature/AuditableModelTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656

5757
actingAs($user);
5858

59-
$post = new Post();
59+
$post = new Post;
6060
$post->title = 'Hello World';
6161
$post->auditable = false;
6262
$post->save();

0 commit comments

Comments
 (0)