: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
<?php namespace flow\db\migrations;
use la\core\db\LADDLUtils;
use la\core\db\migrations\ILADBMigration;
if ( ! defined( 'WPINC' ) ) die;
* @author Looks Awesome <email@looks-awesome.com>
* @link http://looks-awesome.com
* @copyright Looks Awesome
class FFMigration_3_3 implements ILADBMigration{
public function version(){
public function execute($conn, $manager){
if (!LADDLUtils::existTable($conn, $manager->comments_table_name)){
`id` VARCHAR(50) NOT NULL,
`post_id` VARCHAR(50) NOT NULL,
$conn->query($sql, $manager->comments_table_name, $this->charset());
private function charset(){
$charset = LADDLUtils::charset();
if ( !empty( $charset ) ) {
$charset = " CHARACTER SET {$charset}";