summaryrefslogtreecommitdiffstats
path: root/11.patch
blob: cd2833da78795f6f83f375d50e966def4a751af7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From 9ae15ac27d8618ee7d402b47b0c239b6c41c45d9 Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@remirepo.net>
Date: Thu, 28 Nov 2019 15:51:00 +0100
Subject: [PATCH] fix phplint warning

---
 XML/Util.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/XML/Util.php b/XML/Util.php
index 2a008d3..df37e07 100644
--- a/XML/Util.php
+++ b/XML/Util.php
@@ -918,7 +918,7 @@ public static function splitQualifiedName($qname, $defaultNs = null)
     public static function isValidName($string)
     {
         // check for invalid chars
-        if (!preg_match('/^[[:alpha:]_]\\z/', $string{0})) {
+        if (!preg_match('/^[[:alpha:]_]\\z/', $string[0])) {
             return XML_Util::raiseError(
                 'XML names may only start with letter or underscore',
                 XML_UTIL_ERROR_INVALID_START