PHP 7.2 compatibili...
 
Notifications
Clear all

PHP 7.2 compatibility

5 Posts
3 Users
0 Likes
1,698 Views
(@christophhering)
New Member
Joined: 5 years ago
Posts: 3
Topic starter  

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

 


   
Quote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 6 years ago
Posts: 5874
 

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)
New Member
Joined: 5 years ago
Posts: 3
Topic starter  

No, I have not done any customization.


   
ReplyQuote
 Tom
(@tomson)
Famed Member Admin
Joined: 9 years ago
Posts: 4168
 
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)
New Member
Joined: 5 years ago
Posts: 3
Topic starter  

Thanks for that. Very helpful.


   
ReplyQuote
Share:
Scroll to top