Title: PHP 8+ support
Last modified: July 21, 2023

---

# PHP 8+ support

 *  Resolved [jdbosley](https://wordpress.org/support/users/jdbosley/)
 * (@jdbosley)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/php-8-support-42/)
 * After upgrading to PHP 8.1 I’m getting this deprecated warning about str_replace
   second param can’t be null in version 1.9.3
   **bnfw/includes/engine/class-bnfw-
   engine.php**[** **](https://git02.calise.partners/maverick/backend/maverick/-/merge_requests/1833/diffs#diff-content-16a8e489d31df3ffde3bb98d75316cc681ed8f69)
   line line 804changing it to null coalescing
 * $message = str_replace( ‘[first_image]’, $this->get_first_image( $post->post_content)??”,
   $message );
   resolved the warning

Viewing 1 replies (of 1 total)

 *  Plugin Author [Jack – BNFW](https://wordpress.org/support/users/voltronik/)
 * (@voltronik)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/php-8-support-42/#post-16917404)
 * Hi [@jdbosley](https://wordpress.org/support/users/jdbosley/),
   Thanks for your
   message.
 * I have not done any specific PHP 8.1 testing as yet however, I will add your 
   comments to my list of things to investigate. 
   Thanks for reporting this.

Viewing 1 replies (of 1 total)

The topic ‘PHP 8+ support’ is closed to new replies.

 * ![](https://ps.w.org/bnfw/assets/icon.svg?rev=2531573)
 * [Customize WordPress Emails and Alerts - Better Notifications for WP](https://wordpress.org/plugins/bnfw/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bnfw/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bnfw/)
 * [Active Topics](https://wordpress.org/support/plugin/bnfw/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bnfw/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bnfw/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Jack – BNFW](https://wordpress.org/support/users/voltronik/)
 * Last activity: [2 years, 10 months ago](https://wordpress.org/support/topic/php-8-support-42/#post-16917404)
 * Status: resolved