Plugin Directory

Opened 10 years ago

Last modified 10 years ago

#2495 new defect

Fix warnings found in PHP 7.0 in Polldaddy plugin

Reported by: davidthemachine's profile davidthemachine's profile DavidTheMachine Owned by:
Priority: low Severity: minor
Plugin: not-listed Keywords: PHP 7.0 changes
Cc:

Description

Loading the site with Polldaddy enabled under PHP 7.0 gives the following errors:

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; api_client has a deprecated constructor in [snip]/wp-content/plugins/polldaddy/polldaddy-client.php on line 5
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Ghetto_XML_Object has a deprecated constructor in [snip]/wp-content/plugins/polldaddy/polldaddy-xml.php on line 3
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Polldaddy_XML_Parser has a deprecated constructor in [snip]/htdocs/wp-content/plugins/polldaddy/polldaddy-xml.php on line 610

Attachments (1)

php7.diff (1.3 KB) - added by DavidTheMachine 10 years ago.

Download all attachments as: .zip

Change History (3)

#1 @DavidTheMachine
10 years ago

The attached diff updates the old pre-PHP 5 syntax to use the __construct() form.

#2 @DavidTheMachine
10 years ago

  • Summary changed from Fix warnings found in PHP 7.0 to Fix warnings found in PHP 7.0 in Polldaddy plugin
Note: See TracTickets for help on using tickets.