Skip to content

Commit d31116c

Browse files
committed
Type cast to db driver interface instead of abstract class
1 parent 8453512 commit d31116c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

event/main_listener.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ static public function getSubscribedEvents()
5252
/** @var \phpbb\content_visibility */
5353
protected $content_visibility;
5454

55-
/** @var \phpbb\db\driver\driver */
55+
/** @var \phpbb\db\driver\driver_interface */
5656
protected $db;
5757

5858
/** @var \phpbb\template\template */
@@ -66,11 +66,11 @@ static public function getSubscribedEvents()
6666
*
6767
* @param \phpbb\auth\auth $auth
6868
* @param \phpbb\content_visibility $content_visibility
69-
* @param \phpbb\db\driver\driver $db
69+
* @param \phpbb\db\driver\driver_interface $db
7070
* @param \phpbb\template\template $template
7171
* @param \phpbb\user $user
7272
*/
73-
public function __construct(\phpbb\auth\auth $auth, \phpbb\content_visibility $content_visibility, \phpbb\db\driver\driver $db, \phpbb\template\template $template, \phpbb\user $user, $phpbb_root_path, $phpEx)
73+
public function __construct(\phpbb\auth\auth $auth, \phpbb\content_visibility $content_visibility, \phpbb\db\driver\driver_interface $db, \phpbb\template\template $template, \phpbb\user $user, $phpbb_root_path, $phpEx)
7474
{
7575
$this->auth = $auth;
7676
$this->content_visibility = $content_visibility;

0 commit comments

Comments
 (0)