Fatal error: Uncaught TypeError: Typed property App\Controllers\ProductsController::$brand must be object or null, bool used in /home/ecotrend/public_html/app/Controllers/ProductsController.php:201
Stack trace:
#0 /home/ecotrend/public_html/app/Controllers/ProductsController.php(40): App\Controllers\ProductsController->fetchBrands()
#1 [internal function]: App\Controllers\ProductsController->index(NULL, NULL)
#2 /home/ecotrend/public_html/vendor/php-di/invoker/src/Invoker.php(74): call_user_func_array(Array, Array)
#3 /home/ecotrend/public_html/vendor/php-di/php-di/src/Container.php(279): Invoker\Invoker->call(Array, Array)
#4 /home/ecotrend/public_html/app/Application.php(77): DI\Container->call(Array, Array)
#5 /home/ecotrend/public_html/app/Application.php(19): App\Application->setupRouting()
#6 /home/ecotrend/public_html/index.php(7): App\Application->start()
#7 {main}
thrown in /home/ecotrend/public_html/app/Controllers/ProductsController.php on line 201