Fix signature of begin method

This commit is contained in:
Laurent Destailleur 2022-10-06 17:09:10 +02:00
parent 09ee684c9f
commit 94767f5fd1
3 changed files with 9 additions and 7 deletions

View File

@ -64,9 +64,10 @@ interface Database
/**
* 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
/**

View File

@ -150,8 +150,8 @@ abstract class DoliDB implements Database
/**
* Start transaction
*
* @param string $textinlog Add a small text into log. '' by default.
* @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($textinlog = '')
{

View File

@ -102,11 +102,12 @@ class TraceableDB extends DoliDB
/**
* 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);
}
/**