From a4dccec7626946879f2110733a220aee3105193f Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 29 Jan 2023 14:20:06 +0100 Subject: feat(PHP8.2): Fix dynamic properties deprecation warnings Signed-off-by: Florian Pritz --- application/controllers/api/api_controller.php | 1 + application/models/Mfile.php | 1 + application/service/multipaste_queue.php | 4 ++++ application/test/tests/test_service_multipaste_queue.php | 5 +++++ application/third_party/test-more-php/Test-Simple-OO.php | 1 + system/libraries/Driver.php | 1 + 6 files changed, 13 insertions(+) diff --git a/application/controllers/api/api_controller.php b/application/controllers/api/api_controller.php index d615d6cec..ad3ac6e73 100644 --- a/application/controllers/api/api_controller.php +++ b/application/controllers/api/api_controller.php @@ -10,6 +10,7 @@ namespace controllers\api; abstract class api_controller { + public $CI; public function __construct() { $this->CI =& get_instance(); } diff --git a/application/models/Mfile.php b/application/models/Mfile.php index 2c433887d..b9bb67d3c 100644 --- a/application/models/Mfile.php +++ b/application/models/Mfile.php @@ -10,6 +10,7 @@ class Mfile extends CI_Model { private $upload_path; + private $id_validation_config; function __construct() { diff --git a/application/service/multipaste_queue.php b/application/service/multipaste_queue.php index 553e9a6c2..ff202366c 100644 --- a/application/service/multipaste_queue.php +++ b/application/service/multipaste_queue.php @@ -11,6 +11,10 @@ namespace service; class multipaste_queue { + private $session; + private $mfile; + private $mmultipaste; + public function __construct($session = null, $mfile = null, $mmultipaste = null) { $CI =& get_instance(); diff --git a/application/test/tests/test_service_multipaste_queue.php b/application/test/tests/test_service_multipaste_queue.php index cab53e335..6bf078d97 100644 --- a/application/test/tests/test_service_multipaste_queue.php +++ b/application/test/tests/test_service_multipaste_queue.php @@ -11,6 +11,11 @@ namespace test\tests; class test_service_multipaste_queue extends \test\Test { + private $session; + private $mfile; + private $mmultipaste; + private $m; + public function __construct() { parent::__construct(); diff --git a/application/third_party/test-more-php/Test-Simple-OO.php b/application/third_party/test-more-php/Test-Simple-OO.php index 33fb643a9..a8302d208 100755 --- a/application/third_party/test-more-php/Test-Simple-OO.php +++ b/application/third_party/test-more-php/Test-Simple-OO.php @@ -73,6 +73,7 @@ class TestSimple { protected $NumberOfTests; protected $CurrentTestNumber; protected $Filter; + protected $LastFail; protected $notes; diff --git a/system/libraries/Driver.php b/system/libraries/Driver.php index 84f0b6c3e..7059be645 100644 --- a/system/libraries/Driver.php +++ b/system/libraries/Driver.php @@ -50,6 +50,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); * @author EllisLab Dev Team * @link */ +#[\AllowDynamicProperties] class CI_Driver_Library { /** -- cgit v1.2.3-24-g4f1b