I have a controller with the following code, working fine till CI 4.5 version.
Code:
34 public function index(): string
35 {
36 $model = new RegisterModel();
37 $total = new stdClass;
38 $total->registrations = $model->countRegistrations();
39 $total->pictures = $model->countPictures();
40 $this->viewData['total'] = $total;
41 return view('pages/public/registers/civil/main', $this->viewData);
42 }
After the latest update I get the error: Class "App\Controllers\stdClass" not found
What's wrong with the code above? Thanks a lot for any hint