Fixed PHP 8 compatibility; required parameter follows optional

Home Page Forums WooCommerce Custom Tabs Fixed PHP 8 compatibility; required parameter follows optional

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

    Posts

  • #12098

    Stephan

    Participant

    Hello,

    the plugin causes deprecation warnings with PHP 8:

    > Deprecated: required parameter follows optional

    We prepared a patch for the problem. You can review it and download it from:
    https://github.com/makers99/wp-cli-shared-patches/commit/b208137cb50544158e7fc9c228bc623717a79c76

    In case you have any questions, I’m happy to help.

    Thanks in advance,
    Daniel Kudwien

    #12130

    WebshopLogic

    Keymaster

    Hi Danie,

    Thanks for the signal and the correction.
    Finally, we made the last parameter optional as well:
    public function __construct( $file, $product_id, $software_version, $plugin_or_theme, $api_url, $software_title = ”, $text_domain = ”, $plugin_basename = ” )

    It will be included in the next version.

    Best Regards,
    Peter Rath
    WebshopLogic

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.