PHP 7.2 compatibility  

  RSS

christophhering
(@christophhering)
New Member
Joined: 2 weeks ago
Posts: 3
03/12/2018 1:44 pm  

When checking with PHP Compatibility Checker for PHP 7.2 I get the following warning: Function name "_construct" is discouraged; PHP has reserved all method names with a double underscore prefix for future use.

PHP 7.2

Does this needs fixing or can I ignore it? Thanks for help. C

 


ReplyQuote
Astghik
(@astghik)
Support Team Admin
Joined: 1 year ago
Posts: 1511
03/12/2018 4:04 pm  

Hi christophhering,

Have you done any customization?

Please check is there  2 underlines in   __construct() function line 9 (/wp-content/plugins/wpforo/wpf-includes/class-phrases.php file) ? 

underline


ReplyQuote
christophhering
(@christophhering)
New Member
Joined: 2 weeks ago
Posts: 3
05/12/2018 11:30 am  

No, I have not done any customization.


ReplyQuote
Tom
 Tom
(@tomson)
Support Team Admin
Joined: 4 years ago
Posts: 2784
05/12/2018 12:32 pm  
Posted by: christophhering

No, I have not done any customization.

Hi @christophhering,

Please ignore this, this is the problem of tool you use to check it. This tool has a bug here, it doesn't recognize that the __constructor() is the same reserved function. Please contact that tool support and they'll verify this bug. Don't forget to show the screenshot provided by Astghik above, it shows that the code is correct and the problem checker tool is incorrect.


ReplyQuote
christophhering
(@christophhering)
New Member
Joined: 2 weeks ago
Posts: 3
05/12/2018 2:50 pm  

Thanks for that. Very helpful.


ReplyQuote
Share: