mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/13450] Type-hint return value of $phpbb_container->get()
PHPBB3-13450
This commit is contained in:
@@ -57,6 +57,7 @@ class release_3_0_5_rc1 extends \phpbb\db\migration\migration
|
||||
{
|
||||
global $phpbb_container;
|
||||
|
||||
/* @var $passwords_manager \phpbb\passwords\manager */
|
||||
$passwords_manager = $phpbb_container->get('passwords.manager');
|
||||
$sql = 'SELECT user_id, user_password
|
||||
FROM ' . $this->table_prefix . 'users
|
||||
|
@@ -238,6 +238,8 @@ abstract class profilefield_base_migration extends \phpbb\db\migration\migration
|
||||
if ($profile_row === null)
|
||||
{
|
||||
global $phpbb_container;
|
||||
|
||||
/* @var $manager \phpbb\profilefields\manager */
|
||||
$manager = $phpbb_container->get('profilefields.manager');
|
||||
$profile_row = $manager->build_insert_sql_array(array());
|
||||
}
|
||||
|
Reference in New Issue
Block a user