mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-14 04:34:07 +02:00
[ticket/13450] Type-hint return value of $phpbb_container->get()
PHPBB3-13450
This commit is contained in:
@@ -1147,6 +1147,7 @@ class acp_attachments
|
||||
$total_size = $stats['upload_dir_size'];
|
||||
|
||||
// Make sure $start is set to the last page if it exceeds the amount
|
||||
/* @var $pagination \phpbb\pagination */
|
||||
$pagination = $phpbb_container->get('pagination');
|
||||
$start = $pagination->validate_start($start, $attachments_per_page, $num_files);
|
||||
|
||||
@@ -1346,6 +1347,8 @@ class acp_attachments
|
||||
else
|
||||
{
|
||||
$this->set_attachment_stats($this->get_attachment_stats());
|
||||
|
||||
/* @var $log \phpbb\log\log_interface */
|
||||
$log = $this->phpbb_container->get('log');
|
||||
$log->add('admin', $this->user->data['user_id'], $this->user->ip, 'LOG_RESYNC_FILES_STATS');
|
||||
}
|
||||
|
Reference in New Issue
Block a user