Fatal error: Uncaught TypeError: productclass\Product::getName(): Return value must be of type string, null returned in /var/www/html/productclass/Product.php:187 Stack trace: #0 /var/www/html/index.php(105): productclass\Product->getName() #1 {main} thrown in /var/www/html/productclass/Product.php on line 187