Title: PHP compatibility issue
Last modified: October 5, 2022

---

# PHP compatibility issue

 *  Resolved [Xandro](https://wordpress.org/support/users/sudarshankotian/)
 * (@sudarshankotian)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/php-compatibility-issue-10/)
 * Hi, I was trying to test PHP compatibility with PHP Compatibility Checker plugin
   and found that your plugin has some issues as below >
 * FILE: /public_html/wp-content/plugins/geoip-detect/vendor/symfony/string/Inflector/
   InflectorInterface.php
    ———————————————————————————————————————————————————————-
   FOUND 1 ERROR AFFECTING 1 LINE ———————————————————————————————————————————————————————-
   12 | ERROR | ‘string’ is a reserved keyword as of PHP version 7.0 and should 
   not be used to name a class, interface or trait or as part of a namespace (T_NAMESPACE)———————————————————————————————————————————————————————-
 * FILE: /public_html/wp-content/plugins/geoip-detect/vendor/symfony/string/Inflector/
   FrenchInflector.php
    ———————————————————————————————————————————————————————-
   FOUND 1 ERROR AFFECTING 1 LINE ———————————————————————————————————————————————————————-
   12 | ERROR | ‘string’ is a reserved keyword as of PHP version 7.0 and should 
   not be used to name a class, interface or trait or as part of a namespace (T_NAMESPACE)———————————————————————————————————————————————————————-
 * FILE: /public_html/wp-content/plugins/geoip-detect/vendor/symfony/string/Inflector/
   EnglishInflector.php
    ———————————————————————————————————————————————————————-
   FOUND 1 ERROR AFFECTING 1 LINE ———————————————————————————————————————————————————————-
   12 | ERROR | ‘string’ is a reserved keyword as of PHP version 7.0 and should 
   not be used to name a class, interface or trait or as part of a namespace (T_NAMESPACE)———————————————————————————————————————————————————————-
 * FILE: /public_html/wp-content/plugins/geoip-detect/vendor/symfony/string/UnicodeString.
   php
    ———————————————————————————————————————————————————————- FOUND 1 ERROR AFFECTING
   1 LINE ———————————————————————————————————————————————————————- 12 | ERROR | ‘
   string’ is a reserved keyword as of PHP version 7.0 and should not be used to
   name a class, interface or trait or as part of a namespace (T_NAMESPACE) ———————————————————————————————————————————————————————-
 * FILE: /public_html/wp-content/plugins/geoip-detect/vendor/symfony/string/ByteString.
   php
    ———————————————————————————————————————————————————————- FOUND 1 ERROR AFFECTING
   1 LINE ———————————————————————————————————————————————————————- 12 | ERROR | ‘
   string’ is a reserved keyword as of PHP version 7.0 and should not be used to
   name a class, interface or trait or as part of a namespace (T_NAMESPACE) ———————————————————————————————————————————————————————-
 * FILE: /public_html/wp-content/plugins/geoip-detect/vendor/symfony/string/Slugger/
   AsciiSlugger.php
    ———————————————————————————————————————————————————————- FOUND
   1 ERROR AFFECTING 1 LINE ———————————————————————————————————————————————————————-
   12 | ERROR | ‘string’ is a reserved keyword as of PHP version 7.0 and should 
   not be used to name a class, interface or trait or as part of a namespace (T_NAMESPACE)———————————————————————————————————————————————————————-
 * FILE: /public_html/wp-content/plugins/geoip-detect/vendor/symfony/string/Slugger/
   SluggerInterface.php
    ———————————————————————————————————————————————————————-
   FOUND 1 ERROR AFFECTING 1 LINE ———————————————————————————————————————————————————————-
   12 | ERROR | ‘string’ is a reserved keyword as of PHP version 7.0 and should 
   not be used to name a class, interface or trait or as part of a namespace (T_NAMESPACE)———————————————————————————————————————————————————————-
 * FILE: /public_html/wp-content/plugins/geoip-detect/vendor/symfony/string/AbstractUnicodeString.
   php
    ———————————————————————————————————————————————————————- FOUND 1 ERROR AFFECTING
   1 LINE ———————————————————————————————————————————————————————- 12 | ERROR | ‘
   string’ is a reserved keyword as of PHP version 7.0 and should not be used to
   name a class, interface or trait or as part of a namespace (T_NAMESPACE) ———————————————————————————————————————————————————————-
 * FILE: /public_html/wp-content/plugins/geoip-detect/vendor/symfony/string/AbstractString.
   php
    ———————————————————————————————————————————————————————- FOUND 1 ERROR AFFECTING
   1 LINE ———————————————————————————————————————————————————————- 12 | ERROR | ‘
   string’ is a reserved keyword as of PHP version 7.0 and should not be used to
   name a class, interface or trait or as part of a namespace (T_NAMESPACE) ———————————————————————————————————————————————————————-
 * FILE: /public_html/wp-content/plugins/geoip-detect/vendor/symfony/string/LazyString.
   php
    ———————————————————————————————————————————————————————– FOUND 2 ERRORS 
   AFFECTING 2 LINES ———————————————————————————————————————————————————————– 12
   | ERROR | ‘string’ is a reserved keyword as of PHP version 7.0 and should not
   be used to name a class, interface or trait or as part of a namespace (T_NAMESPACE)
   119 | ERROR | Throwing exceptions from __toString() was not allowed prior to 
   PHP 7.4 ———————————————————————————————————————————————————————–
 * FILE: /public_html/wp-content/plugins/geoip-detect/vendor/symfony/string/Exception/
   InvalidArgumentException.php
    ———————————————————————————————————————————————————————-
   FOUND 1 ERROR AFFECTING 1 LINE ———————————————————————————————————————————————————————-
   12 | ERROR | ‘string’ is a reserved keyword as of PHP version 7.0 and should 
   not be used to name a class, interface or trait or as part of a namespace (T_NAMESPACE)———————————————————————————————————————————————————————-
 * FILE: /public_html/wp-content/plugins/geoip-detect/vendor/symfony/string/Exception/
   ExceptionInterface.php
    ———————————————————————————————————————————————————————-
   FOUND 1 ERROR AFFECTING 1 LINE ———————————————————————————————————————————————————————-
   12 | ERROR | ‘string’ is a reserved keyword as of PHP version 7.0 and should 
   not be used to name a class, interface or trait or as part of a namespace (T_NAMESPACE)———————————————————————————————————————————————————————-
 * FILE: /public_html/wp-content/plugins/geoip-detect/vendor/symfony/string/Exception/
   RuntimeException.php
    ———————————————————————————————————————————————————————-
   FOUND 1 ERROR AFFECTING 1 LINE ———————————————————————————————————————————————————————-
   12 | ERROR | ‘string’ is a reserved keyword as of PHP version 7.0 and should 
   not be used to name a class, interface or trait or as part of a namespace (T_NAMESPACE)———————————————————————————————————————————————————————-
 * FILE: /public_html/wp-content/plugins/geoip-detect/vendor/symfony/string/CodePointString.
   php
    ———————————————————————————————————————————————————————- FOUND 1 ERROR AFFECTING
   1 LINE ———————————————————————————————————————————————————————- 12 | ERROR | ‘
   string’ is a reserved keyword as of PHP version 7.0 and should not be used to
   name a class, interface or trait or as part of a namespace (T_NAMESPACE) ———————————————————————————————————————————————————————-
 * FILE: /public_html/wp-content/plugins/geoip-detect/vendor/symfony/string/Resources/
   functions.php
    ———————————————————————————————————————————————————————- FOUND
   1 ERROR AFFECTING 1 LINE ———————————————————————————————————————————————————————-
   12 | ERROR | ‘string’ is a reserved keyword as of PHP version 7.0 and should 
   not be used to name a class, interface or trait or as part of a namespace (T_NAMESPACE)———————————————————————————————————————————————————————-
 * FILE: /public_html/wp-content/plugins/geoip-detect/vendor/symfony/polyfill-intl-
   normalizer/Normalizer.php
    ———————————————————————————————————————– FOUND 0 ERRORS
   AND 1 WARNING AFFECTING 1 LINE ———————————————————————————————————————– 93 | 
   WARNING | INI directive ‘mbstring.func_overload’ is deprecated since PHP 7.2 ———————————————————————————————————————–
 * Also are you planning to update this plugin with respect to support PHP version
   8.1?

Viewing 1 replies (of 1 total)

 *  [Benjamin Pick](https://wordpress.org/support/users/benjamin4/)
 * (@benjamin4)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/php-compatibility-issue-10/#post-16138999)
 * The plugin is working with 8.1 . I am currently supporting PHP 7.2 so these files
   are included conditionally (they are all from from the symfony library).

Viewing 1 replies (of 1 total)

The topic ‘PHP compatibility issue’ is closed to new replies.

 * ![](https://ps.w.org/geoip-detect/assets/icon-256x256.jpg?rev=978998)
 * [Geolocation IP Detection](https://wordpress.org/plugins/geoip-detect/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/geoip-detect/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/geoip-detect/)
 * [Active Topics](https://wordpress.org/support/plugin/geoip-detect/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/geoip-detect/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/geoip-detect/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Benjamin Pick](https://wordpress.org/support/users/benjamin4/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/php-compatibility-issue-10/#post-16138999)
 * Status: resolved