diff --git a/ecs.php b/ecs.php index aee42dc..a20090f 100644 --- a/ecs.php +++ b/ecs.php @@ -11,9 +11,10 @@ $config->paths([ 'src', 'tests/Behat', + 'spec', + 'ecs.php', ]); // PHP 7 compatibility $config->ruleWithConfiguration(TrailingCommaInMultilineFixer::class, ['elements' => ['arrays']]); - }; diff --git a/src/Extension/UpdatePaymentStateExtension.php b/src/Extension/UpdatePaymentStateExtension.php index 4f67dde..f0a6752 100644 --- a/src/Extension/UpdatePaymentStateExtension.php +++ b/src/Extension/UpdatePaymentStateExtension.php @@ -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