framework/db/pgsql/ColumnSchema.php
public function dbTypecast($value)
    {
        if ($value === null) {
            return $value;
        }

        if ($value instanceof ExpressionInterface) {
            return $value;
        }

        if ($this->dimension > 0) {
            return $this->disableArraySupport
                ? (string) $value
                : new ArrayExpression($value, $this->dbType, $this->dimension);
        }
        if (!$this->disableJsonSupport && in_array($this->dbType, [Schema::TYPE_JSON, Schema::TYPE_JSONB], true)) {
            return new JsonExpression($value, $this->dbType);
        }

        return $this->typecast($value);
    }
public function dbTypecast($value)
    {
        if ($value === null) {
            return $value;
        }

        if ($value instanceof ExpressionInterface) {
            return $value;
        }

        if ($this->dimension > 0) {
            return $this->disableArraySupport
                ? (string) $value
                : new ArrayExpression($value, $this->dbType, $this->dimension);
        }
        if (!$this->disableJsonSupport && in_array($this->dbType, [Schema::TYPE_JSON, Schema::TYPE_JSONB], true)) {
            return new JsonExpression($value, $this->dbType);
        }

        return $this->typecast($value);
    }
public function dbTypecast ( $ value ) { if ( $ value === null ) { return $ value ; } if ( $ value instanceof ExpressionInterface ) { return $ value ; } if ( $ this -> dimension > 0 ) { return $ this -> disableArraySupport ? ( string ) $ value : new ArrayExpression ( $ value , $ this -> dbType , $ this -> dimension ) ; } if ( ! $ this -> disableJsonSupport && in_array ( $ this -> dbType , [ Schema :: TYPE_JSON , Schema :: TYPE_JSONB ] , true ) ) { return new JsonExpression ( $ value , $ this -> dbType ) ; } return $ this -> typecast ( $ value ) ; }
{@inheritdoc}
{