title: Illegal string offset with php 7.1.6
body: <p>This code throws a waring under PHP 7.1.6... Under PHP 5.x.x it does not have any problems.</p>
  
  <p>The offending line is <code>$attributes['onclick'] = $onclick;</code>, with the warning <code>Illegal string offset 'onclick'</code>.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>protected function js_anchor($title, $onclick = '', $attributes = '')
      {
          if ($onclick)
          {
              $attributes['onclick'] = $onclick;
          }
  
          if ($attributes)
          {
              $attributes = _parse_attributes($attributes);
          }
  
          return '&lt;a href="javascript:void(0);"'.$attributes.'&gt;'.$title.'&lt;/a&gt;';
      }
  </code></pre>