• There was a PHP error in user-role-editor/includes/classes/base-lib.php on line 119 when our hosting PHP version updated from v5.6 to v7.3. Can you fix it?

Viewing 1 replies (of 1 total)
  • Plugin Author Vladimir Garagulya

    (@shinephp)

    Hi,

    PHP 7.3 is still quite old. You may use this quick fix – remove ‘string’ type definition from the line #119. Replace:

    public static function filter_string_polyfill(string $string): string {

    with

    public static function filter_string_polyfill( $string ) {

Viewing 1 replies (of 1 total)

The topic ‘PHP Parse error: syntax error, unexpected ‘:’, expecting ‘;’ or ‘{‘’ is closed to new replies.