Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/Fireable.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ class Fireable
public function __construct(
protected readonly Model $model,
protected readonly array $fireableAttributes = [],
) {}
) {
}

/**
* Match updated attributes with fireable ones and trigger events.
Expand Down
3 changes: 2 additions & 1 deletion tests/stubs/StatusChangedToOpen.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ class StatusChangedToOpen
{
public function __construct(
public readonly TestModel $model,
) {}
) {
}
}
2 changes: 1 addition & 1 deletion tests/stubs/TestModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class TestModel extends Model
protected $guarded = [];

protected array $fireableAttributes = [
'value' => ValueChanged::class,
'value' => ValueChanged::class,
'status' => [
'open' => StatusChangedToOpen::class,
],
Expand Down
3 changes: 2 additions & 1 deletion tests/stubs/ValueChanged.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ class ValueChanged
{
public function __construct(
public readonly TestModel $model,
) {}
) {
}
}
Loading