diff --git a/framework/db/Schema.php b/framework/db/Schema.php index 026339b54e4..9d40871ee1e 100644 --- a/framework/db/Schema.php +++ b/framework/db/Schema.php @@ -458,7 +458,7 @@ public function quoteValue($str) return $str; } - if (mb_stripos($this->db->dsn, 'odbc:') === false && ($value = $this->db->getSlavePdo()->quote($str)) !== false) { + if (mb_stripos((string)$this->db->dsn, 'odbc:') === false && ($value = $this->db->getSlavePdo()->quote($str)) !== false) { return $value; }