File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121class 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 }
You can’t perform that action at this time.
0 commit comments