Pastakhov has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/172684

Change subject: fix function Compiler::stepMethodChaining() (v 3.11.2)
......................................................................

fix function Compiler::stepMethodChaining() (v 3.11.2)

Change-Id: I1d07d656b776ec05d59c5b4c92186feb06e3d663
---
M PhpTags.php
M includes/Compiler.php
2 files changed, 4 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/PhpTags 
refs/changes/84/172684/1

diff --git a/PhpTags.php b/PhpTags.php
index 492fe10..0ff2696 100644
--- a/PhpTags.php
+++ b/PhpTags.php
@@ -17,7 +17,7 @@
 
 const PHPTAGS_MAJOR_VERSION = 3;
 const PHPTAGS_MINOR_VERSION = 11;
-const PHPTAGS_RELEASE_VERSION = 1;
+const PHPTAGS_RELEASE_VERSION = 2;
 define( 'PHPTAGS_VERSION', PHPTAGS_MAJOR_VERSION . '.' . PHPTAGS_MINOR_VERSION 
. '.' . PHPTAGS_RELEASE_VERSION );
 
 const PHPTAGS_HOOK_RELEASE = 5;
diff --git a/includes/Compiler.php b/includes/Compiler.php
index 14c4cb6..39745d0 100644
--- a/includes/Compiler.php
+++ b/includes/Compiler.php
@@ -1468,6 +1468,9 @@
                do {
                        $this->stepUP();
                        $val =& $this->stepValue( array(&$result, $isStatic) );
+                       if ( $isStatic ) { // Static is the first calls only
+                               $isStatic = false;
+                       }
                        if ( $val == false ) { // Example: FOO::bar-> ;
                                // PHP Parse error:  syntax error, unexpected 
$id
                                throw new PhpTagsException( 
PhpTagsException::PARSE_SYNTAX_ERROR_UNEXPECTED, array( $this->id ), 
$this->tokenLine, $this->place );

-- 
To view, visit https://gerrit.wikimedia.org/r/172684
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1d07d656b776ec05d59c5b4c92186feb06e3d663
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/PhpTags
Gerrit-Branch: master
Gerrit-Owner: Pastakhov <pastak...@yandex.ru>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to