Gehu Pierre created THRIFT-5829:
-----------------------------------
Summary: PHP lib Use of "static" in callables is deprecated notice
Key: THRIFT-5829
URL: https://issues.apache.org/jira/browse/THRIFT-5829
Project: Thrift
Issue Type: Bug
Components: PHP - Library
Affects Versions: 0.21.0
Reporter: Gehu Pierre
The PHP library is outputting notice:
_*{color:#DE350B}Use of "static" in callables is deprecated{color}*_
This is caused by use of static callables in
[apache/thrift/lib/php/lib/Type/TConstant.php|https://github.com/apache/thrift/blob/56c4b159f885bd931a27f1a8b78b12696638b17f/lib/php/lib/Type/TConstant.php#L44]
{code:php}
if (is_null(static::$$constant)) {
static::$$constant = call_user_func(
sprintf('static::init_%s', $constant)
);
}
return static::$$constant; {code}
The fix is describe here for [PHP 8.2
deprecated|https://php.watch/versions/8.2/partially-supported-callable-deprecation].
Although, this may need to be updated elsewhere also.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)