Make a parameter in private method in MP API non-optional

[MAILPOET-4291]
This commit is contained in:
Rostislav Wolny
2022-08-10 11:01:05 +02:00
committed by Veljko V
parent 5d3c851d02
commit 1bf751978c

View File

@@ -224,7 +224,7 @@ class Subscribers {
* @return SegmentEntity[]
* @throws APIException
*/
private function getAndValidateSegments(array $listIds, string $context = self::CONTEXT_SUBSCRIBE): array {
private function getAndValidateSegments(array $listIds, string $context): array {
// throw exception when none of the segments exist
$foundSegments = $this->segmentsRepository->findBy(['id' => $listIds]);
if (!$foundSegments) {