mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-01 12:05:37 +02:00
[ticket/11350] Do not pass $db by reference; typehint phpbb_db_driver
PHPBB3-11350
This commit is contained in:
parent
67c85fa4d3
commit
daf243026a
@ -303,7 +303,7 @@ class phpbb_db_tools
|
||||
* @param phpbb_db_driver $db Database connection
|
||||
* @param bool $return_statements True if only statements should be returned and no SQL being executed
|
||||
*/
|
||||
function phpbb_db_tools(&$db, $return_statements = false)
|
||||
function phpbb_db_tools(phpbb_db_driver $db, $return_statements = false)
|
||||
{
|
||||
$this->db = $db;
|
||||
$this->return_statements = $return_statements;
|
||||
|
Loading…
x
Reference in New Issue
Block a user