title: Array and string offset access syntax with curly braces is deprecated
body: <p>I've just updated my php version to 7.4, and i noticed this error pops up:</p>
  <blockquote>
  <p>Array and string offset access syntax with curly braces is deprecated</p>
  </blockquote>
  <p>here is part of my code which is triggering the above error:</p>
  <pre><code>public function getRecordID(string $zoneID, string $type = '', string $name = ''): string
  {
      $records = $this-&gt;listRecords($zoneID, $type, $name);
      if (isset($records-&gt;result{0}-&gt;id)) {
          return $records-&gt;result{0}-&gt;id;
      }
      return false;
  }
  </code></pre>
  <p>there are few libraries in my project which is using curly braces to get individual characters inside a string, whats the best way to change the syntax issue?</p>