1212
1313/**
1414 * Trait TodoistCommentsTrait.
15+ *
16+ * @package FabianBeiner\Todoist
1517 */
1618trait TodoistCommentsTrait
1719{
@@ -33,7 +35,7 @@ public function getAllCommentsByProject(int $projectId)
3335 * @param string $type Can be "project" or "task".
3436 * @param int $typeId ID of the project/task.
3537 *
36- * @return array|bool Array with all comments (can be empty), or false on failure.
38+ * @return array|bool|mixed Array with all comments (can be empty), or false on failure.
3739 */
3840 public function getAllComments (string $ type , int $ typeId )
3941 {
@@ -61,7 +63,7 @@ public function getAllComments(string $type, int $typeId)
6163 /**
6264 * Validates an ID to be a positive integer.
6365 *
64- * @param mixed $id
66+ * @param int $id
6567 *
6668 * @return bool
6769 */
@@ -72,7 +74,7 @@ abstract protected function validateId($id): bool;
7274 *
7375 * @param int $taskId ID of the task.
7476 *
75- * @return array|bool Array with all comments (can be empty), or false on failure.
77+ * @return array|bool|mixed Array with all comments (can be empty), or false on failure.
7678 */
7779 public function getAllCommentsByTask ($ taskId )
7880 {
@@ -99,7 +101,7 @@ public function createCommentForProject(int $projectId, string $comment)
99101 * @param int $typeId ID of the project/task.
100102 * @param string $comment Comment to be added.
101103 *
102- * @return object| bool Object with values of the new comment, or false on failure.
104+ * @return bool|mixed Object with values of the new comment, or false on failure.
103105 */
104106 public function createComment (string $ type , int $ typeId , string $ comment )
105107 {
@@ -140,7 +142,7 @@ abstract protected function prepareRequestData(array $data = []): array;
140142 * @param int $taskId ID of the task.
141143 * @param string $comment Comment to be added.
142144 *
143- * @return object| bool Object with values values of the new comment, or false on failure.
145+ * @return bool|mixed Object with values values of the new comment, or false on failure.
144146 */
145147 public function createCommentForTask (int $ taskId , string $ comment )
146148 {
@@ -152,7 +154,7 @@ public function createCommentForTask(int $taskId, string $comment)
152154 *
153155 * @param int $commentId ID of the comment.
154156 *
155- * @return object| bool Object with values of the comment, or false on failure.
157+ * @return bool|mixed Object with values of the comment, or false on failure.
156158 */
157159 public function getComment (int $ commentId )
158160 {
0 commit comments