Skip to content

Commit

Permalink
Fix Psalm (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
lruozzi9 committed Jun 9, 2023
1 parent 055fdd4 commit 0f4809b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Command/EnqueueEcommerceAbandonedCartCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ protected function execute(InputInterface $input, OutputInterface $output)
if (!$customer instanceof CustomerActiveCampaignAwareInterface) {
continue;
}
/** @var string|int|null $customerId */
$customerId = $customer->getId();
Assert::notNull($customerId);
$channel = $abandonedCart->getChannel();
Assert::isInstanceOf($channel, ChannelInterface::class);
if (!$channel instanceof ChannelActiveCampaignAwareInterface) {
Expand Down

0 comments on commit 0f4809b

Please sign in to comment.