1
0
Fork 0

Added todo list

This commit is contained in:
Marcel Kapfer 2021-09-20 17:47:41 +02:00
parent 454d7a1d6d
commit e8e4112548
Signed by: mmk2410
GPG key ID: CADE6F0C09F21B09

View file

@ -43,7 +43,7 @@ class TodoList
return $this->todos;
}
public function getTodoById(int $id): ?Todo
public function getTodoById(int $id): Todo
{
foreach ($this->todos as $todo) {
if ($todo->getID() == $id) {