Warning: Trying to access array offset on value of type null in /home/miscon/www/www/users/edit.php on line 26

Fatal error: Uncaught TypeError: Guest::getById(): Argument #2 ($id) must be of type int, null given, called in /home/miscon/www/www/users/edit.php on line 28 and defined in /home/miscon/www/www/phpincludes/Entity/Guest.php:433 Stack trace: #0 /home/miscon/www/www/users/edit.php(28): Guest::getById(Object(Doctrine\ORM\EntityManager), NULL) #1 {main} thrown in /home/miscon/www/www/phpincludes/Entity/Guest.php on line 433