Fix update in TConstant.php for PHP 7 compatibility
diff --git a/lib/php/lib/Type/TConstant.php b/lib/php/lib/Type/TConstant.php
index 9e3dd62..e16066c 100644
--- a/lib/php/lib/Type/TConstant.php
+++ b/lib/php/lib/Type/TConstant.php
@@ -41,12 +41,12 @@
*/
public static function get($constant)
{
- if (is_null(static::class::$$constant)) {
- static::class::$$constant = call_user_func(
+ if (is_null(static::$$constant)) {
+ static::$$constant = call_user_func(
sprintf(static::class . '::init_%s', $constant)
);
}
- return static::class::$$constant;
+ return static::$$constant;
}
}