Fix signature of begin method
This commit is contained in:
parent
09ee684c9f
commit
94767f5fd1
@ -64,9 +64,10 @@ interface Database
|
|||||||
/**
|
/**
|
||||||
* Start transaction
|
* Start transaction
|
||||||
*
|
*
|
||||||
* @return int 1 if transaction successfuly opened or already opened, 0 if error
|
* @param string $textinlog Add a small text into log. '' by default.
|
||||||
|
* @return int 1 if transaction successfuly opened or already opened, 0 if error
|
||||||
*/
|
*/
|
||||||
public function begin();
|
public function begin($textinlog = '');
|
||||||
|
|
||||||
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
|
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -150,8 +150,8 @@ abstract class DoliDB implements Database
|
|||||||
/**
|
/**
|
||||||
* Start transaction
|
* Start transaction
|
||||||
*
|
*
|
||||||
* @param string $textinlog Add a small text into log. '' by default.
|
* @param string $textinlog Add a small text into log. '' by default.
|
||||||
* @return int 1 if transaction successfuly opened or already opened, 0 if error
|
* @return int 1 if transaction successfuly opened or already opened, 0 if error
|
||||||
*/
|
*/
|
||||||
public function begin($textinlog = '')
|
public function begin($textinlog = '')
|
||||||
{
|
{
|
||||||
|
|||||||
@ -102,11 +102,12 @@ class TraceableDB extends DoliDB
|
|||||||
/**
|
/**
|
||||||
* Start transaction
|
* Start transaction
|
||||||
*
|
*
|
||||||
* @return int 1 if transaction successfuly opened or already opened, 0 if error
|
* @param string $textinlog Add a small text into log. '' by default.
|
||||||
|
* @return int 1 if transaction successfuly opened or already opened, 0 if error
|
||||||
*/
|
*/
|
||||||
public function begin()
|
public function begin($textinlog = '')
|
||||||
{
|
{
|
||||||
return $this->db->begin();
|
return $this->db->begin($textinlog);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user