Skip to content

Commit

Permalink
Merged PR 55901: Fix compilation in PHP 7.4
Browse files Browse the repository at this point in the history
## What's being changed

Constructor arguments in an observer.

## Why it's being changed

The trailing comma breaks compilation in PHP 7.4.

## How to review / test this change

- Run setup:di:compile in Magento 2.3.7 on PHP 7.4.

Related work items: #262008
  • Loading branch information
sta1r committed Jul 3, 2024
1 parent 8f2b83b commit a91c650
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Observer/Newsletter/ChangeContactSubscription.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public function __construct(
DateTime $dateTime,
ScopeConfigInterface $scopeConfig,
PublisherInterface $publisher,
SubscriptionDataFactory $subscriptionDataFactory,
SubscriptionDataFactory $subscriptionDataFactory
) {
$this->contactResource = $contactResource;
$this->automationFactory = $automationFactory;
Expand Down

0 comments on commit a91c650

Please sign in to comment.