From 8f3a2db0f8c4d1953268bf929b850322fe8a11ca Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Wed, 18 Dec 2024 15:11:40 +1300 Subject: [PATCH] Fix #797 define properties in parent class to prevent php warnings. --- classes/page_with_filter_controls.php | 9 +++++++++ classes/report_page_params.php | 7 +------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/classes/page_with_filter_controls.php b/classes/page_with_filter_controls.php index f686ba3460..402bf37bd3 100644 --- a/classes/page_with_filter_controls.php +++ b/classes/page_with_filter_controls.php @@ -77,6 +77,15 @@ class mod_attendance_page_with_filter_controls { /** @var int */ private $sesstype; + /** @var int */ + public $page; + + /** @var int */ + public $group; + + /** @var int */ + public $sort; + /** * initialise stuff. * diff --git a/classes/report_page_params.php b/classes/report_page_params.php index 025dee6ad3..d2d2862f90 100644 --- a/classes/report_page_params.php +++ b/classes/report_page_params.php @@ -29,18 +29,13 @@ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class mod_attendance_report_page_params extends mod_attendance_page_with_filter_controls { - /** @var int */ - public $group; - /** @var int */ - public $sort; /** @var int */ public $showextrauserdetails; /** @var int */ public $showsessiondetails; /** @var int */ public $sessiondetailspos; - /** @var int */ - public $page; + /** * mod_attendance_report_page_params constructor.