PHP 5.5 Error: Non-static method should not be called statically
-
I upgraded from PHP 5.3 to 5.5 and started getting the following 2 errors:
1. PHP Strict Standards: Non-static method DevGeSHi::langFiles() should not be called statically in /var/www/html/wp-content/plugins/devformatter/devcommon.php on line 70
2. PHP Strict Standards: Non-static method DevGeSHi::langFileTitle() should not be called statically in /var/www/html/wp-content/plugins/devformatter/devgeshi.php on line 82
I have fixed these issues by marking both method definitions as static. Does that seem reasonable?
- The topic ‘PHP 5.5 Error: Non-static method should not be called statically’ is closed to new replies.