Title: PHP7 compatibility errors
Last modified: September 29, 2016

---

# PHP7 compatibility errors

 *  Resolved [Jer Turowetz](https://wordpress.org/support/users/jturowetzgmailcom/)
 * (@jturowetzgmailcom)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/php7-compatibility-errors-2/)
 * 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](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [9 years, 7 months ago](https://wordpress.org/support/topic/php7-compatibility-errors-2/#post-8235826)
 * 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](https://wordpress.org/support/users/jturowetzgmailcom/)
 * (@jturowetzgmailcom)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/php7-compatibility-errors-2/#post-8235867)
 * 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.

 * ![](https://ps.w.org/cmb2/assets/icon.svg?rev=2866672)
 * [CMB2](https://wordpress.org/plugins/cmb2/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cmb2/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cmb2/)
 * [Active Topics](https://wordpress.org/support/plugin/cmb2/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cmb2/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cmb2/reviews/)

## Tags

 * [compatibility](https://wordpress.org/support/topic-tag/compatibility/)
 * [PHP7](https://wordpress.org/support/topic-tag/php7/)

 * 2 replies
 * 2 participants
 * Last reply from: [Jer Turowetz](https://wordpress.org/support/users/jturowetzgmailcom/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/php7-compatibility-errors-2/#post-8235867)
 * Status: resolved