Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Declared session in BaseController to avoid Creation of dynamic property in php 8.2 #6996

Merged
merged 8 commits into from Dec 24, 2022
6 changes: 6 additions & 0 deletions app/Controllers/BaseController.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ abstract class BaseController extends Controller
*/
protected $helpers = [];

/**
* Be sure to declare properties for anything you assign.
This conversation was marked as resolved.
Show resolved Hide resolved
* The creation of dynamic property is deprecated in PHP 8.2.
*/
// protected $session;

/**
* Constructor.
*/
Expand Down