mmk2410
/
my-todo-list
Archived
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
1 changed files with 1 additions and 1 deletions

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) {