Support » Plugin: Redirection » PHP 7 deprecated constructor warnings

  • Hi,
    not a priority, but it would be good to clean up the classes the plugin uses to use function __construct() syntax for their constructors.

    With WP_DEBUG enabled under PHP7, I see a lot of this:

    
    [01-May-2017 01:35:58 UTC] PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; RE_404 has a deprecated constructor in /wp-content/plugins/redirection/models/log.php on line 140
    [01-May-2017 01:35:58 UTC] PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; Red_Match has a deprecated constructor in /wp-content/plugins/redirection/models/match.php on line 3
    [01-May-2017 01:35:58 UTC] PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; Red_Action has a deprecated constructor in /wp-content/plugins/redirection/models/action.php on line 3
    [01-May-2017 01:35:58 UTC] PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; Red_Item has a deprecated constructor in /wp-content/plugins/redirection/models/redirect.php on line 3
    
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘PHP 7 deprecated constructor warnings’ is closed to new replies.