Warning: Trying to access array offset on value of type bool in /home/cpt283bibb/www/www/labs/ch15_ex2/model/category_db.php on line 27
Warning: Trying to access array offset on value of type bool in /home/cpt283bibb/www/www/labs/ch15_ex2/model/category_db.php on line 28
Fatal error: Uncaught TypeError: Category::__construct(): Argument #1 ($id) must be of type int, null given, called in /home/cpt283bibb/www/www/labs/ch15_ex2/model/category_db.php on line 28 and defined in /home/cpt283bibb/www/www/labs/ch15_ex2/model/category.php:3
Stack trace:
#0 /home/cpt283bibb/www/www/labs/ch15_ex2/model/category_db.php(28): Category->__construct(NULL, NULL)
#1 /home/cpt283bibb/www/www/labs/ch15_ex2/product_catalog/index.php(24): CategoryDB::getCategory(1)
#2 {main}
thrown in /home/cpt283bibb/www/www/labs/ch15_ex2/model/category.php on line 3