Skip to content

Commit fad7376

Browse files
authored
Merge pull request #4090 from najdanovicivan/nosql/base-model-fix
BaseModel/Model - Removed $escape from doUpdate
2 parents 6861a58 + 9c78463 commit fad7376

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

system/BaseModel.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -377,13 +377,12 @@ abstract protected function doInsertBatch(?array $set = null, ?bool $escape = nu
377377
* Updates a single record in the database.
378378
* This methods works only with dbCalls
379379
*
380-
* @param integer|array|string|null $id ID
381-
* @param array|null $data Data
382-
* @param boolean|null $escape Escape
380+
* @param integer|array|string|null $id ID
381+
* @param array|null $data Data
383382
*
384383
* @return boolean
385384
*/
386-
abstract protected function doUpdate($id = null, $data = null, ?bool $escape = null): bool;
385+
abstract protected function doUpdate($id = null, $data = null): bool;
387386

388387
/**
389388
* Compiles an update and runs the query

system/Model.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -321,13 +321,12 @@ protected function doInsertBatch(?array $set = null, ?bool $escape = null, int $
321321
* Updates a single record in $this->table.
322322
* This methods works only with dbCalls
323323
*
324-
* @param integer|array|string|null $id ID
325-
* @param array|null $data Data
326-
* @param boolean|null $escape Escape
324+
* @param integer|array|string|null $id ID
325+
* @param array|null $data Data
327326
*
328327
* @return boolean
329328
*/
330-
protected function doUpdate($id = null, $data = null, ?bool $escape = null): bool
329+
protected function doUpdate($id = null, $data = null): bool
331330
{
332331
$escape = $this->escape;
333332
$this->escape = null;

0 commit comments

Comments
 (0)