Opened 10 years ago
Last modified 10 years ago
#2495 new defect
Fix warnings found in PHP 7.0 in Polldaddy plugin
| Reported by: |
|
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)
Change History (3)
Note: See
TracTickets for help on using
tickets.
The attached diff updates the old pre-PHP 5 syntax to use the
__construct()form.