Various code cleanup and phpstan suggestions

This commit is contained in:
James Cole
2022-11-02 06:25:37 +01:00
parent 74610a5d55
commit 8d8f81c27d
45 changed files with 147 additions and 27 deletions

View File

@@ -47,7 +47,7 @@ class StoredTransactionGroup extends Event
* @param bool $applyRules
* @param bool $fireWebhooks
*/
public function __construct(TransactionGroup $transactionGroup, bool $applyRules = true, bool $fireWebhooks = true)
public function __construct(TransactionGroup $transactionGroup, bool $applyRules, bool $fireWebhooks)
{
$this->transactionGroup = $transactionGroup;
$this->fireWebhooks = $fireWebhooks;

View File

@@ -43,7 +43,7 @@ class TriggeredAuditLog extends Event
/**
* Create a new event instance.
*/
public function __construct(Model $changer, Model $auditable, string $field, mixed $before = null, mixed $after = null)
public function __construct(Model $changer, Model $auditable, string $field, mixed $before, mixed $after)
{
$this->changer = $changer;
$this->auditable = $auditable;

View File

@@ -47,7 +47,7 @@ class UpdatedTransactionGroup extends Event
* @param bool $applyRules
* @param bool $fireWebhooks
*/
public function __construct(TransactionGroup $transactionGroup, bool $applyRules = true, bool $fireWebhooks = true)
public function __construct(TransactionGroup $transactionGroup, bool $applyRules, bool $fireWebhooks)
{
$this->transactionGroup = $transactionGroup;
$this->fireWebhooks = $fireWebhooks;