Announcement

Collapse
No announcement yet.

[Advanced pack] Missing return type in WorkflowManager loader

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [Advanced pack] Missing return type in WorkflowManager loader

    The load method of the loader class must have its return type set. Since it's missing in application/Espo/Modules/Advanced/Core/Loaders/WorkflowManager.php on line 21, it is not possible to inject WorkflowManager as a dependency in a constructor.

    Possible fix:

    Change line 21 to:

    PHP Code:
    public function load() : \Espo\Modules\Advanced\Core\WorkflowManager 
    Last edited by mozkomor; 01-18-2022, 09:42 AM.
Working...
X