mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
[ticket/16955] Clean up installer classes for psalm
PHPBB3-16955
This commit is contained in:
@@ -45,7 +45,7 @@ class update_extensions extends task_base
|
||||
protected $update_helper;
|
||||
|
||||
/**
|
||||
* @var \phpbb\config\db
|
||||
* @var \phpbb\config\config
|
||||
*/
|
||||
protected $config;
|
||||
|
||||
@@ -111,9 +111,9 @@ class update_extensions extends task_base
|
||||
// Make sure asset version exists in config. Otherwise we might try to
|
||||
// insert the assets_version setting into the database and cause a
|
||||
// duplicate entry error.
|
||||
if (!isset($this->config['assets_version']))
|
||||
if (!$this->config->offsetExists('assets_version'))
|
||||
{
|
||||
$this->config['assets_version'] = 0;
|
||||
$this->config->offsetSet('assets_version', 0);
|
||||
}
|
||||
|
||||
parent::__construct(true);
|
||||
|
Reference in New Issue
Block a user