Skip to content

Commit fa0bf1d

Browse files
committed
fixed postgre builder methods
1 parent 5f811ba commit fa0bf1d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

system/Database/Postgre/Builder.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939

4040
use CodeIgniter\Database\BaseBuilder;
4141
use CodeIgniter\Database\Exceptions\DatabaseException;
42+
use http\Encoding\Stream\Inflate;
4243

4344
/**
4445
* Builder for Postgre
@@ -178,7 +179,7 @@ public function decrement(string $column, int $value = 1)
178179
*
179180
* @return string
180181
*/
181-
protected function _insertBatch($table, $keys, $values)
182+
protected function _insertBatch(string $table, array $keys, array $values) : string
182183
{
183184
return 'INSERT INTO ' . $table . ' (' . implode(', ', $keys) . ') VALUES ' . implode(', ', $values) . $this->compileIgnore('insert');
184185
}
@@ -196,7 +197,7 @@ protected function _insertBatch($table, $keys, $values)
196197
*
197198
* @return string
198199
*/
199-
protected function _insert($table, array $keys, array $unescapedKeys)
200+
protected function _insert(string $table, array $keys, array $unescapedKeys) : string
200201
{
201202
return 'INSERT INTO ' . $table . ' (' . implode(', ', $keys) . ') VALUES (' . implode(', ', $unescapedKeys) . ')' . $this->compileIgnore('insert');
202203
}

0 commit comments

Comments
 (0)