• Resolved User

    (@lostguybrazil)


    Hi,

    I have recently migrated to PHP 8.4. I am getting a lot of deprecation warnings for this plugin:

    message: "WooCommerce\\PayPalCommerce\\WcGateway\\Helper\\DisplayManager::rule(): Implicitly marking parameter $key as nullable is deprecated, the explicit nullable type must be used instead", file: "wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-wc-gateway/src/Helper/DisplayManager.php", line: 49, stack: (18)

    message: "WooCommerce\\PayPalCommerce\\WcGateway\\Helper\\DCCProductStatus::clear(): Implicitly marking parameter $settings as nullable is deprecated, the explicit nullable type must be used instead", file: "wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-wc-gateway/src/Helper/DCCProductStatus.php", line: 196, stack: (14)

    message: "WooCommerce\\PayPalCommerce\\WcGateway\\Processor\\RefundProcessor::process(): Implicitly marking parameter $amount as nullable is deprecated, the explicit nullable type must be used instead", file: "wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-wc-gateway/src/Processor/RefundProcessor.php", line: 110, stack: (12)

    message: "WooCommerce\\PayPalCommerce\\WcGateway\\Helper\\PayUponInvoiceProductStatus::clear(): Implicitly marking parameter $settings as nullable is deprecated, the explicit nullable type must be used instead", file: "wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-wc-gateway/src/Helper/PayUponInvoiceProductStatus.php", line: 183, stack: (8)

    message: "WooCommerce\\PayPalCommerce\\WcGateway\\Settings\\SettingsListener::__construct(): Implicitly marking parameter $logger as nullable is deprecated, the explicit nullable type must be used instead", file: "wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-wc-gateway/src/Settings/SettingsListener.php", line: 197, stack: (6)

    message: "WooCommerce\\PayPalCommerce\\WcGateway\\Helper\\DisplayManager::rule(): Implicitly marking parameter $key as nullable is deprecated, the explicit nullable type must be used instead", file: "wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-wc-gateway/src/Helper/DisplayManager.php", line: 49, stack: (18)

    message: "WooCommerce\\PayPalCommerce\\WcGateway\\Helper\\DCCProductStatus::clear(): Implicitly marking parameter $settings as nullable is deprecated, the explicit nullable type must be used instead", file: "wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-wc-gateway/src/Helper/DCCProductStatus.php", line: 196, stack: (14)

    ...

    Could you please update it accordingly?

    Kind regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Femi

    (@femiyb)

    Hello @lostguybrazil

    I do not see this warnings on my side with PHP 8.4.

    Could you please confirm if you have the latest version of the WooCommerce PayPal Payments installed?
    If not, please update to the latest version and confirm if the issue persists.

    Regards,
    Femi.

    Thread Starter User

    (@lostguybrazil)

    Hi @femiyb,

    Thank you for your quick response.

    I am using the latest version (Version 2.9.6). All my plugins are using are updated to the latest version.

    I have tested it once again by opening the /wp-admin/admin.php?page=wc-orders and after clearing cache for Cloudflare and nginx, and Redis cache flush the deprecation warning is not being shown anymore.

    Thank you for your support.

    Kind regards

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Fix PHP 8.4 deprecation: Implicitly marking parameter as nullable is deprecated’ is closed to new replies.