Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @shawaj,

    Could you please share the errors you are getting?

    Best regards,
    Anton

    Thread Starter shawaj

    (@shawaj)

    FILE: /srv/http/vhosts/site.com/httpdocs/wp-content/plugins/wp-smushit/lib/class-wp-smush-recommender.php
    -----------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -----------------------------------------------------------------------------------------------------------------------------------
     80 | ERROR | Function name, class name, namespace name or constant name can not be reserved keyword '__DIR__' (since version 5.3)
    -----------------------------------------------------------------------------------------------------------------------------------
    
    FILE: /srv/http/vhosts/site.com/httpdocs/wp-content/plugins/wp-smushit/lib/class-wp-smush-admin.php
    ------------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ------------------------------------------------------------------------------------------------------------------------------------
     374 | ERROR | Function name, class name, namespace name or constant name can not be reserved keyword '__DIR__' (since version 5.3)
    ------------------------------------------------------------------------------------------------------------------------------------
    • This reply was modified 6 years, 4 months ago by shawaj.

    @shawaj,

    These will be removed in the upcoming update. But, it’s actually a false positive, you won’t get any errors/warnings on PHP 7.2.

    Best regards,
    Anton

    Thread Starter shawaj

    (@shawaj)

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP 7.2 compatibility?’ is closed to new replies.