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

Fix PHP 8.1 deprecates passing null to non-nullable internal function parameters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.20.0
    • PHP - Library
    • None

    Description

      PHP 8.1 has deprecated passing null values to non-nullable internal function parameters:

      https://wiki.php.net/rfc/deprecate_null_to_scalar_internal_arg

      This can lead to deprecation warnings and potential errors in future versions.

      Example of a deprecation warning:

      PHP Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in Thrift/StringFunc/Core.php on line 38 

       

      Attachments

        Issue Links

          Activity

            People

              pkvach Pavel Kvach
              pkvach Pavel Kvach
              Votes:
              0 Vote for this issue
              Watchers:
              1 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 - 0.5h
                  0.5h