[ticket/11350] Do not pass $db by reference; typehint phpbb_db_driver

PHPBB3-11350
Merge remote-tracking branch 'exreaction/ticket/11350' into develop

* exreaction/ticket/11350:
  [ticket/11350] Do not pass $db by reference; typehint phpbb_db_driver