mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Various code cleanup and phpstan suggestions
This commit is contained in:
@@ -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;
|
||||
|
@@ -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;
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user