Skip to content

Commit 5fac896

Browse files
authored
Merge pull request #6996 from thenerdyshark/develop
Declared session in BaseController to avoid Creation of dynamic property in php 8.2
2 parents f59babb + a2c47fa commit 5fac896

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

app/Controllers/BaseController.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ abstract class BaseController extends Controller
3737
*/
3838
protected $helpers = [];
3939

40+
/**
41+
* Be sure to declare properties for any property fetch you initialized.
42+
* The creation of dynamic property is deprecated in PHP 8.2.
43+
*/
44+
// protected $session;
45+
4046
/**
4147
* Constructor.
4248
*/

0 commit comments

Comments
 (0)