Title: Compatibility with PHP 7.X
Last modified: March 6, 2018

---

# Compatibility with PHP 7.X

 *  Resolved [calvinseng](https://wordpress.org/support/users/calvinseng/)
 * (@calvinseng)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/compatibility-with-php-7-x/)
 * Hi,
 * We would like to run on PHP 7.X but it seems to have database issue.
    Any idea?
   Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Sultan Nasir Uddin](https://wordpress.org/support/users/manikmist09/)
 * (@manikmist09)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/compatibility-with-php-7-x/#post-10044511)
 * [@calvinseng](https://wordpress.org/support/users/calvinseng/)
    WP ERP is fully
   compatible with PHP7.X, however, its always better to have a backup of your database
   before upgrading.
 *  Thread Starter [calvinseng](https://wordpress.org/support/users/calvinseng/)
 * (@calvinseng)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/compatibility-with-php-7-x/#post-10044533)
 * Hi Sultan,
 * Thanks but whenever I upgraded to PHP7.X
    It will generate the following error
   code,
 *     ```
       Warning: Declaration of Illuminate\Database\Eloquent\Collection::contains($key, $value = NULL) should be compatible with Illuminate\Support\Collection::contains($key, $operator = NULL, $value = NULL) in /server_path/plugins/erp/vendor/illuminate/database/Eloquent/Collection.php on line 5
   
       Warning: Declaration of Illuminate\Database\Eloquent\Collection::max($key) should be compatible with Illuminate\Support\Collection::max($callback = NULL) in /server_path/plugins/erp/vendor/illuminate/database/Eloquent/Collection.php on line 5
   
       Warning: Declaration of Illuminate\Database\Eloquent\Collection::min($key) should be compatible with Illuminate\Support\Collection::min($callback = NULL) in /server_path/plugins/erp/vendor/illuminate/database/Eloquent/Collection.php on line 5
   
       Warning: Declaration of Illuminate\Database\Eloquent\Collection::unique() should be compatible with Illuminate\Support\Collection::unique($key = NULL, $strict = false) in /server_path/plugins/erp/vendor/illuminate/database/Eloquent/Collection.php on line 5
       ```
   
 *  [Sultan Nasir Uddin](https://wordpress.org/support/users/manikmist09/)
 * (@manikmist09)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/compatibility-with-php-7-x/#post-10044540)
 * Thank you for pointing this out. We will release a version end of the week fixing
   those issues.
 *  [Shawon C.](https://wordpress.org/support/users/shawon786/)
 * (@shawon786)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/compatibility-with-php-7-x/#post-10051410)
 * [@calvinseng](https://wordpress.org/support/users/calvinseng/),
 * I am trying to reproduce this in PHP version 7.2, but no luck!
    Could you please
   let me know when you are getting this error? Also, I’d like to know the current
   version of your server’s PHP.
 * Thanks in advance for your cooperation 🙂

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Compatibility with PHP 7.X’ is closed to new replies.

 * ![](https://ps.w.org/erp/assets/icon-256x256.gif?rev=3439413)
 * [ERP: Complete HR, Accounting & CRM Suite with WooCommerce CRM Support](https://wordpress.org/plugins/erp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/erp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/erp/)
 * [Active Topics](https://wordpress.org/support/plugin/erp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/erp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/erp/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Shawon C.](https://wordpress.org/support/users/shawon786/)
 * Last activity: [8 years, 3 months ago](https://wordpress.org/support/topic/compatibility-with-php-7-x/#post-10051410)
 * Status: resolved