"Redefining already defined constructor" warning
Closed this issue · 1 comments
micat commented
crazy-bone always shows following warning. I got the warning on PHP 5.5.16.
PHP Strict Standards: Redefining already defined constructor for class DetectBrowsersController in /path/to/wp-content/plugins/crazy-bone/includes/detect_browsers.php on line 37
It wil disappear if you switch the order of functions; define __construct
first, and next DetectBrowsersController
. However, that is backward compatibility for PHP 4, which is not supported by WordPress. So I think you'd better to remove such outdated style.
wokamoto commented
Thx! fixed it issues.
https://github.com/wokamoto/crazy-bone/blob/master/includes/detect_browsers.php#L37-L38