Skip to content

Commit

Permalink
fix phpstan error
Browse files Browse the repository at this point in the history
  • Loading branch information
shyim committed Oct 29, 2024
1 parent 39ffab3 commit 394174a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Subscriber/FlowSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,6 @@ private function getSalesChannelName(string $salesChannelId, Context $context):
/** @var SalesChannelEntity $salesChannel */
$salesChannel = $this->salesChannelRepository->search($criteria, $context)->first();

return $salesChannel->getTranslation('name');
return (string) $salesChannel->getTranslation('name');

Check failure on line 155 in src/Subscriber/FlowSubscriber.php

View workflow job for this annotation

GitHub Actions / phpstan / Static Analyse

Cannot cast mixed to string.
}
}

0 comments on commit 394174a

Please sign in to comment.