Skip to content

Commit 2adf0a8

Browse files
committed
✨ support CodeIgniter dynamic properties by extending from stdClass
Signed-off-by: otengkwame <[email protected]>
1 parent 096046b commit 2adf0a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CodeIgniter/Framework/core/Controller.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
* @link https://codeigniter.com/userguide3/general/controllers.html
5151
*/
5252
#[AllowDynamicProperties]
53-
class CI_Controller {
53+
class CI_Controller extends stdClass {
5454

5555
/**
5656
* Reference to the CI singleton
@@ -85,7 +85,7 @@ class CI_Controller {
8585
*
8686
* @var CI_Output
8787
*/
88-
public $response;
88+
public $response;
8989

9090
/**
9191
* Class constructor

0 commit comments

Comments
 (0)