Array merge

$customReceivers = $this->receiversRepository->findAll();

        if (empty($customReceivers)) {
            return;
        }

        foreach ($customReceivers as $singleReceivers) {
            $receiverConfig = $this->dataProviders[$singleReceivers->getType()];
            array_push($this->receivers, new Receiver(
                $receiverConfig['app'],
                $receiverConfig['account'],
                array_merge($receiverConfig, [
                    'value' => $singleReceivers->getData(),
                ]),
                $receiverConfig['methodName']
            ));
        }
Komentarze wyłączone