• Resolved jdbosley

    (@jdbosley)


    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? line line 804

    changing 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 bnfw

    (@voltronik)

    Hi @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.