Skip to content

php 8.3 compatibility issue #22

@cartsofware

Description

@cartsofware

to upgrade extention to php 8.3+ we have to slightly change /extension/twilio/vendor/twilio-php-master/Services/Twilio/Resource.php rows 92-99

from

 public static function camelize($word) {
      $callback = @create_function('$matches', 'return strtoupper("$matches[2]");');
      return preg_replace_callback('/(^|_)([a-z])/',
           $callback,
           $word);
   }

to

public static function camelize($word) {
       $callback = @function ($matches) {return strtoupper("$matches[2]");};
       return preg_replace_callback('/(^|_)([a-z])/',
           $callback,
           $word);
   }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions