Make a parameter in private method in MP API non-optional
[MAILPOET-4291]
This commit is contained in:
committed by
Veljko V
parent
5d3c851d02
commit
1bf751978c
@@ -224,7 +224,7 @@ class Subscribers {
|
|||||||
* @return SegmentEntity[]
|
* @return SegmentEntity[]
|
||||||
* @throws APIException
|
* @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
|
// throw exception when none of the segments exist
|
||||||
$foundSegments = $this->segmentsRepository->findBy(['id' => $listIds]);
|
$foundSegments = $this->segmentsRepository->findBy(['id' => $listIds]);
|
||||||
if (!$foundSegments) {
|
if (!$foundSegments) {
|
||||||
|
Reference in New Issue
Block a user