Skip to content

Commit 6bf29c1

Browse files
committed
Fix for Symfony 7
1 parent fef0248 commit 6bf29c1

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

routing/page_loader.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
class page_loader extends Loader
2222
{
2323
/** @var driver_interface */
24-
protected $db;
24+
protected driver_interface $db;
2525

2626
/** @var string */
27-
protected $pages_table;
27+
protected string $pages_table;
2828

2929
/**
3030
* Constructor
@@ -33,10 +33,11 @@ class page_loader extends Loader
3333
* @param string $pages_table Table name
3434
* @access public
3535
*/
36-
public function __construct(driver_interface $db, $pages_table)
36+
public function __construct(driver_interface $db, string $pages_table)
3737
{
3838
$this->db = $db;
3939
$this->pages_table = $pages_table;
40+
parent::__construct();
4041
}
4142

4243
/**
@@ -49,7 +50,7 @@ public function __construct(driver_interface $db, $pages_table)
4950
*
5051
* @api
5152
*/
52-
public function load($resource, $type = null)
53+
public function load($resource, string $type = null): RouteCollection
5354
{
5455
$collection = new RouteCollection();
5556

@@ -73,7 +74,7 @@ public function load($resource, $type = null)
7374
*
7475
* @api
7576
*/
76-
public function supports($resource, $type = null)
77+
public function supports($resource, $type = null): bool
7778
{
7879
return $type === 'phpbb_pages_route';
7980
}

0 commit comments

Comments
 (0)