From 4959398b96d04d68963c13f458a0e2b09be1f3f2 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Mon, 1 Feb 2021 10:39:35 +1100 Subject: [PATCH] [NFC] Fix PHP 7.4 Syntax issue in Afform HTML Extension --- ext/afform/core/CRM/Afform/ArrayHtml.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/afform/core/CRM/Afform/ArrayHtml.php b/ext/afform/core/CRM/Afform/ArrayHtml.php index 464363f5bf..1ff7c703f9 100644 --- a/ext/afform/core/CRM/Afform/ArrayHtml.php +++ b/ext/afform/core/CRM/Afform/ArrayHtml.php @@ -105,7 +105,7 @@ class CRM_Afform_ArrayHtml { $buf = $indent . '<' . $tag; foreach ($array as $attrName => $attrValue) { - if ($attrName{0} === '#') { + if ($attrName[0] === '#') { continue; } if (!preg_match('/^[a-zA-Z0-9\-]+$/', $attrName)) { -- 2.25.1