mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-17 13:00:20 +02:00
[ticket/17145] Change static to private variable due to php81 inheritance
PHPBB3-17145
This commit is contained in:
parent
65fb35223c
commit
464466cade
@ -40,6 +40,8 @@ abstract class profilefield_base_migration extends container_aware_migration
|
||||
|
||||
protected $user_column_name;
|
||||
|
||||
private $profile_row;
|
||||
|
||||
public function effectively_installed()
|
||||
{
|
||||
return $this->db_tools->sql_column_exists($this->table_prefix . 'profile_fields_data', 'pf_' . $this->profilefield_name);
|
||||
@ -234,15 +236,13 @@ abstract class profilefield_base_migration extends container_aware_migration
|
||||
|
||||
protected function get_insert_sql_array()
|
||||
{
|
||||
static $profile_row;
|
||||
|
||||
if ($profile_row === null)
|
||||
if ($this->profile_row === null)
|
||||
{
|
||||
/* @var $manager \phpbb\profilefields\manager */
|
||||
$manager = $this->container->get('profilefields.manager');
|
||||
$profile_row = $manager->build_insert_sql_array(array());
|
||||
$this->profile_row = $manager->build_insert_sql_array(array());
|
||||
}
|
||||
|
||||
return $profile_row;
|
||||
return $this->profile_row;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user