From 082108d4c8055b0652b209e330748eb3f1364424 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 29 Apr 2020 10:33:52 +0200 Subject: update to 5.2.2 fix test suite for PHP 7.4 using patch from https://github.com/llaville/php-compat-info/pull/261 --- 261.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 261.patch (limited to '261.patch') diff --git a/261.patch b/261.patch new file mode 100644 index 0000000..a85df82 --- /dev/null +++ b/261.patch @@ -0,0 +1,22 @@ +From 19098e5772eb4ad87cdc2ebcb94b3fdca39c0887 Mon Sep 17 00:00:00 2001 +From: Remi Collet +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] !== "'" + ); + } + -- cgit