Warning: Array to string conversion in Drupal\eca_modeller_bpmn\ModellerBpmnBase->optionsField()
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3509627. --> Reported by: [jrochate](https://www.drupal.org/user/1832798) Related to !473 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>Got a lot of warnings when editing any model.</p> <p><code>Warning: Array to string conversion in Drupal\eca_modeller_bpmn\ModellerBpmnBase-&gt;optionsField() (line 920 of eca/modules/modeller_bpmn/src/ModellerBpmnBase.php) </code></p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <p>Just edit any existing ECA model.</p> <p>Here is some stack.</p> <pre>#0 /core/includes/bootstrap.inc(166): _drupal_error_handler_real()<br>#1 /modules/contrib/eca/modules/modeller_bpmn/src/ModellerBpmnBase.php(920): _drupal_error_handler()<br>#2 /modules/contrib/eca/modules/modeller_bpmn/src/ModellerBpmnBase.php(852): Drupal\eca_modeller_bpmn\ModellerBpmnBase-&gt;optionsField()<br>#3 /modules/contrib/eca/modules/modeller_bpmn/src/ModellerBpmnBase.php(655): Drupal\eca_modeller_bpmn\ModellerBpmnBase-&gt;prepareConfigFields()<br>#4 /modules/contrib/eca/modules/modeller_bpmn/src/ModellerBpmnBase.php(610): Drupal\eca_modeller_bpmn\ModellerBpmnBase-&gt;properties()<br>#5 /modules/contrib/bpmn_io/src/Plugin/ECA/Modeller/BpmnIo.php(106): Drupal\eca_modeller_bpmn\ModellerBpmnBase-&gt;getTemplates()<br>#6 /modules/contrib/bpmn_io/src/Plugin/ECA/Modeller/BpmnIo.php(67): Drupal\bpmn_io\Plugin\ECA\Modeller\BpmnIo-&gt;build()<br>#7 /modules/contrib/eca/modules/ui/src/Controller/EcaController.php(208): Drupal\bpmn_io\Plugin\ECA\Modeller\BpmnIo-&gt;edit()<br>#8 [internal function]: Drupal\eca_ui\Controller\EcaController-&gt;edit()<br>#9 /core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array()<br>#10 /core/lib/Drupal/Core/Render/Renderer.php(638): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber-&gt;Drupal\Core\EventSubscriber\{closure}()<br>#11 /core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(121): Drupal\Core\Render\Renderer-&gt;executeInRenderContext()<br>#12 /core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber-&gt;wrapControllerExecutionInRenderContext()<br>#13 /var/www/clients/client1/web39/web/repos/ccmar/vendor/symfony/http-kernel/HttpKernel.php(181): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber-&gt;Drupal\Core\EventSubscriber\{closure}()<br>#14 /var/www/clients/client1/web39/web/repos/ccmar/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel-&gt;handleRaw()<br>#15 /core/lib/Drupal/Core/StackMiddleware/Session.php(53): Symfony\Component\HttpKernel\HttpKernel-&gt;handle()<br>#16 /core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session-&gt;handle()<br>#17 /core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle-&gt;handle()<br>#18 /core/modules/big_pipe/src/StackMiddleware/ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength-&gt;handle()<br>#19 /core/modules/page_cache/src/StackMiddleware/PageCache.php(116): Drupal\big_pipe\StackMiddleware\ContentLength-&gt;handle()<br>#20 /core/modules/page_cache/src/StackMiddleware/PageCache.php(90): Drupal\page_cache\StackMiddleware\PageCache-&gt;pass()<br>#21 /core/modules/ban/src/BanMiddleware.php(50): Drupal\page_cache\StackMiddleware\PageCache-&gt;handle()<br>#22 /core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\ban\BanMiddleware-&gt;handle()<br>#23 /core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware-&gt;handle()<br>#24 /core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware-&gt;handle()<br>#25 /modules/contrib/remove_http_headers/src/StackMiddleware/RemoveHttpHeadersMiddleware.php(49): Drupal\Core\StackMiddleware\AjaxPageState-&gt;handle()<br>#26 /core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\remove_http_headers\StackMiddleware\RemoveHttpHeadersMiddleware-&gt;handle()<br>#27 /core/lib/Drupal/Core/DrupalKernel.php(741): Drupal\Core\StackMiddleware\StackedHttpKernel-&gt;handle()<br>#28 /index.php(19): Drupal\Core\DrupalKernel-&gt;handle()<br>#29 {main}</pre>
issue