Controller attributes cannot contain non-scalar\/non-null values
<p>I would like to provide my controller object like this with hinclude.js :</p>

<pre><code>{{ render_hinclude(controller("AppBundle:Default:Test"), { 'object': my_object }) }}
</code></pre>

<p>Unfortunately I got this error: </p>

<blockquote>
  <p>"An exception has been thrown during the rendering of a template
  (\"Controller attributes cannot contain non-scalar/non-null values
  (value for key \"my_object\" is not a scalar or null).\")</p>
</blockquote>

<p>Can you help me ?</p>

<p>Thanks in advance !</p>