Pastakhov has uploaded a new change for review.
https://gerrit.wikimedia.org/r/151577
Change subject: fix exception of access to undefined static property (v 2.8.5)
......................................................................
fix exception of access to undefined static property (v 2.8.5)
Change-Id: I76cd9419db041689c0dcbb4abef2f730dfdb230e
---
M PhpTags.php
M includes/GenericObject.php
2 files changed, 3 insertions(+), 3 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/PhpTags
refs/changes/77/151577/1
diff --git a/PhpTags.php b/PhpTags.php
index 101bd23..daaa51c 100644
--- a/PhpTags.php
+++ b/PhpTags.php
@@ -17,7 +17,7 @@
define( 'PHPTAGS_MAJOR_VERSION', 2 );
define( 'PHPTAGS_MINOR_VERSION', 8 );
-define( 'PHPTAGS_RELEASE_VERSION', 4 );
+define( 'PHPTAGS_RELEASE_VERSION', 5 );
define( 'PHPTAGS_VERSION', PHPTAGS_MAJOR_VERSION . '.' . PHPTAGS_MINOR_VERSION
. '.' . PHPTAGS_RELEASE_VERSION );
define( 'PHPTAGS_HOOK_RELEASE', 4 );
diff --git a/includes/GenericObject.php b/includes/GenericObject.php
index 86ed47d..a5cf43f 100644
--- a/includes/GenericObject.php
+++ b/includes/GenericObject.php
@@ -48,8 +48,8 @@
switch ( $callType ) {
case 's_': // static method
throw new PhpTagsException(
PhpTagsException::FATAL_CALL_TO_UNDEFINED_METHOD, array($object, $subname) );
- case 'q': // static property
- case 'd':
+ case 'q_': // static property
+ case 'd_':
throw new PhpTagsException(
PhpTagsException::FATAL_ACCESS_TO_UNDECLARED_STATIC_PROPERTY, array($object,
$subname) );
case 'c_': // constant
Runtime::$transit[PHPTAGS_TRANSIT_EXCEPTION][]
= new PhpTagsException( PhpTagsException::NOTICE_UNDEFINED_CLASS_CONSTANT,
array($object, $subname) );
--
To view, visit https://gerrit.wikimedia.org/r/151577
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I76cd9419db041689c0dcbb4abef2f730dfdb230e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/PhpTags
Gerrit-Branch: master
Gerrit-Owner: Pastakhov <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits