1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

[ticket/16955] Clean up installer classes for psalm

PHPBB3-16955
This commit is contained in:
Marc Alexander
2022-12-26 14:42:23 +01:00
parent d9c179f9ef
commit 40e8a737c3
22 changed files with 54 additions and 42 deletions

View File

@@ -21,7 +21,7 @@ use phpbb\install\helper\update_helper;
class compression_file_updater implements file_updater_interface
{
/**
* @var \compress|null
* @var \compress_zip|\compress_tar|null
*/
protected $compress;
@@ -86,7 +86,10 @@ class compression_file_updater implements file_updater_interface
*/
public function close()
{
$this->compress->close();
if ($this->compress !== null)
{
$this->compress->close();
}
}
/**