Skip to content

Commit

Permalink
ECS fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Prometee committed Nov 22, 2024
1 parent fee6675 commit 3729930
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
3 changes: 2 additions & 1 deletion ecs.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@
$config->paths([
'src',
'tests/Behat',
'spec',
'ecs.php',
]);

// PHP 7 compatibility
$config->ruleWithConfiguration(TrailingCommaInMultilineFixer::class, ['elements' => ['arrays']]);

};
15 changes: 12 additions & 3 deletions src/Extension/UpdatePaymentStateExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,20 @@ final class UpdatePaymentStateExtension implements ExtensionInterface
/** @var PaymentInterface[] */
private array $scheduledPaymentsToProcess = [];

private StateMachineInterface $stateMachine;

private StorageInterface $storage;

private GetStatusFactoryInterface $getStatusRequestFactory;

public function __construct(
private StateMachineInterface $stateMachine,
private StorageInterface $storage,
private GetStatusFactoryInterface $getStatusRequestFactory
StateMachineInterface $stateMachine,
StorageInterface $storage,
GetStatusFactoryInterface $getStatusRequestFactory
) {
$this->getStatusRequestFactory = $getStatusRequestFactory;
$this->storage = $storage;
$this->stateMachine = $stateMachine;
}

public function onPreExecute(Context $context): void
Expand Down

0 comments on commit 3729930

Please sign in to comment.