myparcelbe / woocommerce

Other
0 stars 4 forks source link

[Deprecated] Return type of WPO\WC\MyParcelBE\Compatibility\WC_DateTime::getTimestamp() #202

Open athiry opened 2 months ago

athiry commented 2 months ago

Describe the bug PHP Waring [Deprecated] Return type of WPO\WC\MyParcelBE\Compatibility\WC_DateTime::getTimestamp() is thriggered when following combination of assets is in place.

Steps to reproduce this behaviour No real steps to reproduce, php Warning triggered when the following combination of assets are in place

Expected behaviour A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Details

Additional context Following PHP Warning:

Deprecated

Return type of WPO\WC\MyParcelBE\Compatibility\WC_DateTime::getTimestamp() should either be compatible with DateTime::getTimestamp(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

-wp-content/plugins/wc-myparcel-belgium/includes/compatibility/class-wc-date-compatibility.php:47 WPForms\ErrorHandler->error_handler() wp-content/plugins/wc-myparcel-belgium/includes/compatibility/class-wc-date-compatibility.php:27 WCMYPABE->includes() wp-content/plugins/wc-myparcel-belgium/woocommerce-myparcel.php:185 WCMYPABE->load_classes() wp-includes/class-wp-hook.php:324 do_action('init') wp-settings.php:695