Title: Implicitly marking parameter $append as nullable is deprecated
Last modified: May 5, 2025

---

# Implicitly marking parameter $append as nullable is deprecated

 *  Resolved [Mehraz Morshed](https://wordpress.org/support/users/mehrazmorshed/)
 * (@mehrazmorshed)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/implicitly-marking-parameter-append-as-nullable-is-deprecated/)
 * PHP Deprecated: Automattic\WooCommerce\Internal\Admin\Settings\Utils::truncate_with_words():
   Implicitly marking parameter $append as nullable is deprecated, the explicit 
   nullable type must be used instead in /Users/th22/pro/smart-brands-pro/wp-content/
   plugins/woocommerce/src/Internal/Admin/Settings/Utils.php on line 263

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

 *  Thread Starter [Mehraz Morshed](https://wordpress.org/support/users/mehrazmorshed/)
 * (@mehrazmorshed)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/implicitly-marking-parameter-append-as-nullable-is-deprecated/#post-18449554)
 * WooCommerce v9.8.3
   WordPress v6.8.1PHP v8.4.4
 *  [Jonayed (woo-hc)](https://wordpress.org/support/users/jonayedhosen/)
 * (@jonayedhosen)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/implicitly-marking-parameter-append-as-nullable-is-deprecated/#post-18449599)
 * Hi [@mehrazmorshed](https://wordpress.org/support/users/mehrazmorshed/) ,
   Thanks
   for reaching out—and I totally get how concerning it can be to see a deprecation
   warning pop up, especially when you’re trying to keep things running smoothly.
 * The warning you’re seeing:
 *     ```wp-block-code
       PHP Deprecated: Automattic\WooCommerce\Internal\Admin\Settings\Utils::truncate_with_words(): Implicitly marking parameter $append as nullable is deprecated, the explicit nullable type must be used instead
       ```
   
 * is related to upcoming changes in **PHP 8.4**. This version introduces a deprecation
   for _implicitly nullable_ parameter declarations. You can read more about that
   [here](https://php.watch/versions/8.4/implicitly-marking-parameter-type-nullable-deprecated),
   if you’re curious.
 * We’re already tracking this on our end, and you can follow the progress here:
   [WooCommerce GitHub issue #57385](https://github.com/woocommerce/woocommerce/issues/57385).
   In the meantime, here are a couple of things you can do:
    - **Temporary workaround:** Downgrading your PHP version slightly to 8.3 should
      avoid the warning for now.
    - **Optional tweak:** If you’d prefer to keep PHP 8.4 and simply suppress the
      deprecation warnings, you can add the following line to your `wp-config.php`
      file:
 *     ```wp-block-code
       error_reporting(E_ALL & ~E_DEPRECATED & ~E_USER_DEPRECATED);
       ```
   
 * This won’t fix the root cause, but it can help keep your logs clean while we 
   work on a permanent solution.
 * Thanks again for your patience!
 *  Plugin Support [Kay U a11n](https://wordpress.org/support/users/kingsleyinfo/)
 * (@kingsleyinfo)
 * [1 year ago](https://wordpress.org/support/topic/implicitly-marking-parameter-append-as-nullable-is-deprecated/#post-18479433)
 * We haven’t heard back from you in a while, so I’m going to mark this as resolved.
 * If you have a few minutes, we’d love if you could leave us a review: [https://wordpress.org/support/plugin/woocommerce/reviews/](https://wordpress.org/support/plugin/woocommerce/reviews/)

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

The topic ‘Implicitly marking parameter $append as nullable is deprecated’ is closed
to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [deprecated](https://wordpress.org/support/topic-tag/deprecated/)
 * [notice](https://wordpress.org/support/topic-tag/notice/)

 * 3 replies
 * 3 participants
 * Last reply from: [Kay U a11n](https://wordpress.org/support/users/kingsleyinfo/)
 * Last activity: [1 year ago](https://wordpress.org/support/topic/implicitly-marking-parameter-append-as-nullable-is-deprecated/#post-18479433)
 * Status: resolved