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