summaryrefslogtreecommitdiffstats
path: root/261.patch
blob: a85df82f2ceb0f0fea795525a7a29ad9a36e44d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From 19098e5772eb4ad87cdc2ebcb94b3fdca39c0887 Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@remirepo.net>
Date: Wed, 29 Apr 2020 10:25:46 +0200
Subject: [PATCH] fix curly braces is deprecated

---
 src/Bartlett/CompatInfo/Sniffs/PHP/DocStringSyntaxSniff.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Bartlett/CompatInfo/Sniffs/PHP/DocStringSyntaxSniff.php b/src/Bartlett/CompatInfo/Sniffs/PHP/DocStringSyntaxSniff.php
index ec0e33a6..dc1e31ad 100644
--- a/src/Bartlett/CompatInfo/Sniffs/PHP/DocStringSyntaxSniff.php
+++ b/src/Bartlett/CompatInfo/Sniffs/PHP/DocStringSyntaxSniff.php
@@ -100,7 +100,7 @@ protected function isHeredocSyntax($node)
     {
         $i = $node->getAttribute('startTokenPos');
         return (strpos($this->tokens[$i][1], "<<<") === 0
-            && $this->tokens[$i][1]{3} !== "'"
+            && $this->tokens[$i][1][3] !== "'"
         );
     }