• Resolved Jer Turowetz

    (@jturowetzgmailcom)


    Just testing my stack in prep for php 7 and found some errors. Apologies if these were already targeted for change.

    FILE: /wp-content/plugins/cmb2/includes/CMB2_Types.php
    -------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -------------------------------------------------------------------------------------------------
     133 | ERROR | 'string' is a reserved keyword introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING)
    -------------------------------------------------------------------------------------------------
    
    FILE: //wp-content/plugins/cmb2/includes/CMB2_Field.php
    -------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -------------------------------------------------------------------------------------------------
     1054 | ERROR | Function name, class name, namespace name or constant name can not be reserved keyword 'string' (since version 7.0)
    -------------------------------------------------------------------------------------------------
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Just confirmed that this is fixed in trunk, which is the development branch. So it won’t be an issue whenever the next release is. However, it would be present in the current release.

    Unless I’m mistaken, both spots have been changed to “get_string” instead of “string”, so if you want to change that yourself to get rid of the notices, feel free.

    Thread Starter Jer Turowetz

    (@jturowetzgmailcom)

    Stellar Michael! That was speedy!

    will get on those changes – thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP7 compatibility errors’ is closed to new replies.