diff --git a/mailpoet/lib/Automation/Engine/Builder/UpdateWorkflowController.php b/mailpoet/lib/Automation/Engine/Builder/UpdateWorkflowController.php index 3a9d6d16fa..3caa6bc427 100644 --- a/mailpoet/lib/Automation/Engine/Builder/UpdateWorkflowController.php +++ b/mailpoet/lib/Automation/Engine/Builder/UpdateWorkflowController.php @@ -73,7 +73,7 @@ class UpdateWorkflowController { } } - private function validateWorkflowSteps(Workflow $workflow, array $steps): void { + protected function validateWorkflowSteps(Workflow $workflow, array $steps): void { $existingSteps = $workflow->getSteps(); if (count($steps) !== count($existingSteps)) { throw Exceptions::workflowStructureModificationNotSupported(); diff --git a/mailpoet/lib/Automation/Engine/Endpoints/Workflows/WorkflowsPutEndpoint.php b/mailpoet/lib/Automation/Engine/Endpoints/Workflows/WorkflowsPutEndpoint.php index de415971b9..abd041be36 100644 --- a/mailpoet/lib/Automation/Engine/Endpoints/Workflows/WorkflowsPutEndpoint.php +++ b/mailpoet/lib/Automation/Engine/Endpoints/Workflows/WorkflowsPutEndpoint.php @@ -45,7 +45,7 @@ class WorkflowsPutEndpoint extends Endpoint { ]; } - private function buildWorkflow(Workflow $workflow): array { + protected function buildWorkflow(Workflow $workflow): array { return [ 'id' => $workflow->getId(), 'name' => $workflow->getName(),