PHP Warnings Upon Activation
-
I’m getting some method incompatibility warnings when activating the plugin ( or loading admin ) which pushes down the left-hand admin navigation and makes it difficult to traverse the admin panel.
When extending parent methods the extended method needs to accept the same parameters.
Warning: Declaration of Fr_Address_Book_for_WooCommerce_Frontend_MyAccount_AddressBookAdd::change_endpoint_title($title) should be compatible with Fr_Address_Book_for_WooCommerce_Frontend_MyAccount_BaseEndpoint::change_endpoint_title($title, $id) in wp-content\plugins\fr-address-book-for-woocommerce\src\Fr_Address_Book_for_WooCommerce_Frontend_MyAccount_AddressBookAdd.php on line 9 Warning: Declaration of Fr_Address_Book_for_WooCommerce_Frontend_MyAccount_AddressBookEdit::change_endpoint_title($title) should be compatible with Fr_Address_Book_for_WooCommerce_Frontend_MyAccount_BaseEndpoint::change_endpoint_title($title, $id) in wp-content\plugins\fr-address-book-for-woocommerce\src\Fr_Address_Book_for_WooCommerce_Frontend_MyAccount_AddressBookEdit.php on line 72
Since the parent method accepts an ID the extended methods also need to accept an ID as a parameter:
Fr_Address_Book_for_WooCommerce_Frontend_MyAccount_AddressBookAdd::change_endpoint_title( $title, $id ) { /* ... */ }
Other than that it looks like this plugin will work perfect for what I need! Thank you for putting it together and releasing it to the plugin repository!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘PHP Warnings Upon Activation’ is closed to new replies.