@@ -676,7 +676,7 @@ discard block |
||
676 | 676 | /** |
677 | 677 | * Return the key of the current element. |
678 | 678 | * |
679 | - * @return mixed |
|
679 | + * @return integer |
|
680 | 680 | */ |
681 | 681 | public function key() { |
682 | 682 | return $this->position; |
@@ -703,7 +703,7 @@ discard block |
||
703 | 703 | * from a trusted set of elements. |
704 | 704 | * |
705 | 705 | * @param array $elements Array of elements to pass into new collection. |
706 | - * @param null|mixed $type |
|
706 | + * @param string $type |
|
707 | 707 | * |
708 | 708 | * @return static |
709 | 709 | */ |
@@ -48,7 +48,7 @@ |
||
48 | 48 | /** |
49 | 49 | * Shared implementation of hook reading logic. |
50 | 50 | * |
51 | - * @param object $target Object to read annotations from. |
|
51 | + * @param Annotatable $target Object to read annotations from. |
|
52 | 52 | * @param \Closure $condition Whether the annotation should be registered. |
53 | 53 | * @return array |
54 | 54 | */ |