@@ -550,7 +550,7 @@ discard block |
||
550 | 550 | * Check if the given field specification could be interpreted as an unquoted relation name |
551 | 551 | * |
552 | 552 | * @param string $field |
553 | - * @return bool |
|
553 | + * @return integer |
|
554 | 554 | */ |
555 | 555 | protected function isValidRelationName($field) |
556 | 556 | { |
@@ -663,7 +663,7 @@ discard block |
||
663 | 663 | * @param int $order A numerical index to control the order that joins are added to the query; lower order values |
664 | 664 | * will cause the query to appear first. The default is 20, and joins created automatically by the |
665 | 665 | * ORM have a value of 10. |
666 | - * @param array $parameters Any additional parameters if the join is a parameterised subquery |
|
666 | + * @param string[] $parameters Any additional parameters if the join is a parameterised subquery |
|
667 | 667 | * @return static |
668 | 668 | */ |
669 | 669 | public function innerJoin($table, $onClause, $alias = null, $order = 20, $parameters = array()) |
@@ -682,7 +682,7 @@ discard block |
||
682 | 682 | * @param int $order A numerical index to control the order that joins are added to the query; lower order values |
683 | 683 | * will cause the query to appear first. The default is 20, and joins created automatically by the |
684 | 684 | * ORM have a value of 10. |
685 | - * @param array $parameters Any additional parameters if the join is a parameterised subquery |
|
685 | + * @param string[] $parameters Any additional parameters if the join is a parameterised subquery |
|
686 | 686 | * @return static |
687 | 687 | */ |
688 | 688 | public function leftJoin($table, $onClause, $alias = null, $order = 20, $parameters = array()) |
@@ -808,7 +808,7 @@ discard block |
||
808 | 808 | * Returns an Iterator for this DataList. |
809 | 809 | * This function allows you to use DataLists in foreach loops |
810 | 810 | * |
811 | - * @return Generator |
|
811 | + * @return \Generator |
|
812 | 812 | */ |
813 | 813 | public function getIterator() |
814 | 814 | { |
@@ -818,7 +818,7 @@ discard block |
||
818 | 818 | } |
819 | 819 | |
820 | 820 | /** |
821 | - * @return Generator|DataObject[] |
|
821 | + * @return \Generator |
|
822 | 822 | */ |
823 | 823 | public function getTemplateIterator() |
824 | 824 | { |
@@ -869,7 +869,7 @@ discard block |
||
869 | 869 | * Return the maximum value of the given field in this DataList |
870 | 870 | * |
871 | 871 | * @param string $fieldName |
872 | - * @return mixed |
|
872 | + * @return string |
|
873 | 873 | */ |
874 | 874 | public function max($fieldName) |
875 | 875 | { |
@@ -880,7 +880,7 @@ discard block |
||
880 | 880 | * Return the minimum value of the given field in this DataList |
881 | 881 | * |
882 | 882 | * @param string $fieldName |
883 | - * @return mixed |
|
883 | + * @return string |
|
884 | 884 | */ |
885 | 885 | public function min($fieldName) |
886 | 886 | { |
@@ -891,7 +891,7 @@ discard block |
||
891 | 891 | * Return the average value of the given field in this DataList |
892 | 892 | * |
893 | 893 | * @param string $fieldName |
894 | - * @return mixed |
|
894 | + * @return string |
|
895 | 895 | */ |
896 | 896 | public function avg($fieldName) |
897 | 897 | { |
@@ -902,7 +902,7 @@ discard block |
||
902 | 902 | * Return the sum of the values of the given field in this DataList |
903 | 903 | * |
904 | 904 | * @param string $fieldName |
905 | - * @return mixed |
|
905 | + * @return string |
|
906 | 906 | */ |
907 | 907 | public function sum($fieldName) |
908 | 908 | { |
@@ -961,7 +961,7 @@ discard block |
||
961 | 961 | /** |
962 | 962 | * Restrict the columns to fetch into this DataList |
963 | 963 | * |
964 | - * @param array $queriedColumns |
|
964 | + * @param string[] $queriedColumns |
|
965 | 965 | * @return static |
966 | 966 | */ |
967 | 967 | public function setQueriedColumns($queriedColumns) |
@@ -1211,7 +1211,7 @@ discard block |
||
1211 | 1211 | /** |
1212 | 1212 | * Returns item stored in list with index $key |
1213 | 1213 | * |
1214 | - * @param mixed $key |
|
1214 | + * @param integer $key |
|
1215 | 1215 | * @return DataObject |
1216 | 1216 | */ |
1217 | 1217 | public function offsetGet($key) |
@@ -8,7 +8,6 @@ |
||
8 | 8 | use SilverStripe\ORM\Queries\SQLConditionGroup; |
9 | 9 | use SilverStripe\View\TemplateIterator; |
10 | 10 | use SilverStripe\View\ViewableData; |
11 | -use ArrayIterator; |
|
12 | 11 | use Exception; |
13 | 12 | use InvalidArgumentException; |
14 | 13 | use LogicException; |