diff options
Diffstat (limited to '172.patch')
-rw-r--r-- | 172.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/172.patch b/172.patch new file mode 100644 index 0000000..bbb7a5f --- /dev/null +++ b/172.patch @@ -0,0 +1,22 @@ +From 7ddf14410504ca980a421a24a66182dc852a3780 Mon Sep 17 00:00:00 2001 +From: Remi Collet <remi@remirepo.net> +Date: Mon, 2 Sep 2019 08:12:46 +0200 +Subject: [PATCH] fix Trying to access array offset on value of type nul (7.4) + +--- + src/Scanner/MethodScanner.php | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/Scanner/MethodScanner.php b/src/Scanner/MethodScanner.php +index 36542028..4eaa01c4 100644 +--- a/src/Scanner/MethodScanner.php ++++ b/src/Scanner/MethodScanner.php +@@ -452,7 +452,7 @@ protected function scan() + $tokenType = null; + $tokenContent = $token; + $tokenLine = $tokenLine + substr_count( +- $lastTokenArray[1], ++ $lastTokenArray[1] ?? null, + "\n" + ); // adjust token line by last known newline count + } else { |