diff --git a/workflow/engine/classes/PMPluginRegistry.php b/workflow/engine/classes/PMPluginRegistry.php index 69548adb5..3851910b7 100644 --- a/workflow/engine/classes/PMPluginRegistry.php +++ b/workflow/engine/classes/PMPluginRegistry.php @@ -1377,11 +1377,10 @@ class PMPluginRegistry if (empty($this->_restExtendServices[$namespace])) { $this->_restExtendServices[$namespace] = new stdClass(); } - $this->_restExtendServices[$namespace]->{$className} = [ - 'filePath' => $classFile, - 'classParent' => $className, - 'classExtend' => 'Ext' . $className - ]; + $this->_restExtendServices[$Namespace]->{$className} = new stdClass(); + $this->_restExtendServices[$Namespace]->{$className}->filePath = $classFile; + $this->_restExtendServices[$Namespace]->{$className}->classParent = $className; + $this->_restExtendServices[$Namespace]->{$className}->classExtend = 'Ext' . $className; } } diff --git a/workflow/engine/src/ProcessMaker/Plugins/PluginRegistry.php b/workflow/engine/src/ProcessMaker/Plugins/PluginRegistry.php index ae4afe370..73a90514b 100644 --- a/workflow/engine/src/ProcessMaker/Plugins/PluginRegistry.php +++ b/workflow/engine/src/ProcessMaker/Plugins/PluginRegistry.php @@ -1261,11 +1261,10 @@ class PluginRegistry if (empty($this->_restExtendServices[$Namespace])) { $this->_restExtendServices[$Namespace] = new stdClass(); } - $this->_restExtendServices[$Namespace]->{$ClassName} = [ - 'filePath' => $classFile, - 'classParent' => $ClassName, - 'classExtend' => 'Ext' . $ClassName - ]; + $this->_restExtendServices[$Namespace]->{$ClassName} = new stdClass(); + $this->_restExtendServices[$Namespace]->{$ClassName}->filePath = $classFile; + $this->_restExtendServices[$Namespace]->{$ClassName}->classParent = $ClassName; + $this->_restExtendServices[$Namespace]->{$ClassName}->classExtend = 'Ext' . $ClassName; } }