Fix possible undefined index access
[MAILPOET-4629]
This commit is contained in:
@@ -181,7 +181,7 @@ class StepHandler {
|
|||||||
private function getSubjectEntries(WorkflowRun $workflowRun, array $requiredSubjectKeys): array {
|
private function getSubjectEntries(WorkflowRun $workflowRun, array $requiredSubjectKeys): array {
|
||||||
$subjectDataMap = [];
|
$subjectDataMap = [];
|
||||||
foreach ($workflowRun->getSubjects() as $data) {
|
foreach ($workflowRun->getSubjects() as $data) {
|
||||||
$subjectDataMap[$data->getKey()] = array_merge($subjectDataMap[$data->getKey()], [$data]);
|
$subjectDataMap[$data->getKey()] = array_merge($subjectDataMap[$data->getKey()] ?? [], [$data]);
|
||||||
}
|
}
|
||||||
|
|
||||||
$subjectEntries = [];
|
$subjectEntries = [];
|
||||||
|
Reference in New Issue
Block a user