@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | /** |
118 | 118 | * Returns the last node with O(1). |
119 | 119 | * |
120 | - * @return DataStructures\Lists\Nodes\DoublyLinkedListNode|null if the list is empty. |
|
120 | + * @return null|DoublyLinkedListNode if the list is empty. |
|
121 | 121 | */ |
122 | 122 | public function searchLast() { |
123 | 123 | if($this->head === null) { |
@@ -229,7 +229,7 @@ discard block |
||
229 | 229 | /** |
230 | 230 | * Generator for retrieve all nodes stored. |
231 | 231 | * |
232 | - * @return null if the head is null (or list is empty) |
|
232 | + * @return \Generator if the head is null (or list is empty) |
|
233 | 233 | */ |
234 | 234 | public function getAll() { |
235 | 235 | if($this->head === null) { |