summaryrefslogtreecommitdiffstats
path: root/phploc-php73.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2018-10-15 09:59:45 +0200
committerRemi Collet <remi@remirepo.net>2018-10-15 09:59:45 +0200
commit51d38872fbef89e1ec400fd51b72f370d4a01f2c (patch)
tree39dffe8062edc9564ebdf793929d78acf831581f /phploc-php73.patch
parent043a7edc3184e0d7889fa58138850052af3472ca (diff)
add patch for PHP 7.3
Diffstat (limited to 'phploc-php73.patch')
-rw-r--r--phploc-php73.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/phploc-php73.patch b/phploc-php73.patch
new file mode 100644
index 0000000..cefbac0
--- /dev/null
+++ b/phploc-php73.patch
@@ -0,0 +1,30 @@
+diff -up ./src/Analyser.php.php73 ./src/Analyser.php
+--- ./src/Analyser.php.php73 2017-11-18 18:35:43.000000000 +0100
++++ ./src/Analyser.php 2018-10-15 09:57:34.714427621 +0200
+@@ -89,7 +89,7 @@ class Analyser
+
+ case T_CLASS:
+ if (!$this->isClassDeclaration($tokens, $i)) {
+- continue;
++ break;
+ }
+
+ $className = $this->getClassName($namespace, $tokens, $i);
+@@ -206,7 +206,7 @@ class Analyser
+ case T_INTERFACE:
+ case T_TRAIT:
+ if (!$this->isClassDeclaration($tokens, $i)) {
+- continue;
++ break;
+ }
+
+ $this->collector->currentClassReset();
+@@ -238,7 +238,7 @@ class Analyser
+ $prev = $this->getPreviousNonWhitespaceTokenPos($tokens, $i);
+
+ if ($tokens[$prev][0] === T_USE) {
+- continue;
++ break;
+ }
+
+ $currentBlock = T_FUNCTION;