PHP 8+ support
-
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)
Viewing 1 replies (of 1 total)
- The topic ‘PHP 8+ support’ is closed to new replies.