Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-5829

PHP lib Use of "static" in callables is deprecated notice

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.21.0
    • 0.22.0
    • PHP - Library
    • None

    Description

      The PHP library is outputting notice: 
      Use of "static" in callables is deprecated

      This is caused by use of static callables in apache/thrift/lib/php/lib/Type/TConstant.php

      if (is_null(static::$$constant)) {
        static::$$constant = call_user_func(
          sprintf('static::init_%s', $constant)
        );
      }
      
      return static::$$constant; 

      The fix is describe here for PHP 8.2 deprecated.

      Although, this may need to be updated elsewhere also.

      Attachments

        Issue Links

          Activity

            People

              gehupierre Gehu Pierre
              gehupierre Gehu Pierre
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m