[REF] Patch electrolinux/phpquery and also core files to fix using {} when doing...
[civicrm-core.git] / Civi / Angular / ChangeSet.php
index 27c92a5867b16395213863d24e732d7a197cd4d3..fc5d9b08c965a56a3ca6069f59b2b5b0241e698e 100644 (file)
@@ -150,7 +150,7 @@ class ChangeSet implements ChangeSetInterface {
    */
   public function alterHtml($file, $callback) {
     $this->htmlFilters[] = [
-      'regex' => ($file{0} === ';') ? $file : $this->createRegex($file),
+      'regex' => ($file[0] === ';') ? $file : $this->createRegex($file),
       'callback' => $callback,
     ];
     return $this;