From e8e4112548eba4015ea4d86a4d9fd7e66f618ec9 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Mon, 20 Sep 2021 17:47:41 +0200 Subject: [PATCH] Added todo list --- src/TodoList.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TodoList.php b/src/TodoList.php index c17252f..c777d3e 100644 --- a/src/TodoList.php +++ b/src/TodoList.php @@ -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) {