Support » Plugin: Help Scout » Upgrade to PHP 7 showing warnings

  • Deyson

    (@deyson)


    Hello and good day, I hope all is well.

    The question I have for today. My hosting company is about to upgrade the PHP to version 7. I had run a test and I have received the warning I had pasted below. Please let me know what you suggest I do. Thank you for all your hard work and have an amazing day! 🙂

    —————————————————————————————————————————————————-
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    —————————————————————————————————————————————————-
    161 | WARNING | Function name “__v_build_message” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    —————————————————————————————————————————————————-

    FILE: /nas/content/live/mmt/wp-content/plugins/help-scout/HelpScout_Desk.php
    ————————————————————————————————————————————————–
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ————————————————————————————————————————————————–
    61 | WARNING | Method name “HelpScout_Desk::__” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    ————————————————————————————————————————————————–

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Dan Cameron

    (@dancameron)

    Hey Deyson,

    Thank you for these warnings, I’ll work on them for a future update.

    Note: It’s going to be hard for WordPress to move away from __(), since they’ve used that for years for strings and every plugin/theme uses it. 😬

    Hello, Dan.

    Thank you very much for looking into this.
    I ran a compatibility test and as of now, this plugin is the only one that did not pass. I am sorry for the trouble. If the plugin fails after my PHP upgrade I could hard code Helpscout into WordPress, so there is not too much pressure.

    Thank you for your valuable time and hard work. Have an amazing day!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Upgrade to PHP 7 showing warnings’ is closed to new replies.