[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
Merge branch 'develop' of https://github.com/phpbb/phpbb3 into feature/migrations-extensions

# Via Igor Wiedler (1) and Nathaniel Guse (1)
* 'develop' of https://github.com/phpbb/phpbb3:
  [ticket/11350] Do not pass $db by reference; typehint phpbb_db_driver
[feature/migrations] Inject Migrator instead of using the container to fetch

PHPBB3-11318
[feature/migrations] Call revert correctly when purging an extension

PHPBB3-11318