[ 
https://issues.apache.org/jira/browse/THRIFT-5829?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17894971#comment-17894971
 ] 

Volodymyr Panivko commented on THRIFT-5829:
-------------------------------------------

The minimal supported version for php in thrift is 7.1, so it should be 
compatible with old version also

> 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
>            Priority: Major
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> 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)

Reply via email to