/** * @param mixed $value * @param Type $type * * @return string */ protected function quoteValue($value, Type $type) { // Don't quote numbers as some don't follow standards for casting if (is_scalar($value) && ctype_digit((string) $value)) { return (string) $value; } return $this->connection->quote($value, $type->getBindingType()); }