Remove outdated code comment

This class doesn't use MailPoet\Tasks\Sending anymore.

[MAILPOET-5684]
This commit is contained in:
Rodrigo Primo
2023-11-28 13:25:01 -03:00
committed by Aschepikov
parent 4ab07621b3
commit 0409747216

View File

@@ -243,8 +243,6 @@ class NewslettersResponseBuilder {
if ($task === null) { if ($task === null) {
return null; return null;
} }
// the following crazy mix of '$queue' and '$task' comes from 'array_merge($task, $queue)'
// (MailPoet\Tasks\Sending) which means all equal-named fields will be taken from '$queue'
return [ return [
'id' => (string)$queue->getId(), // (string) for BC 'id' => (string)$queue->getId(), // (string) for BC
'type' => $task->getType(), 'type' => $task->getType(),