Completed
Pull Request — master (#6501)
by Loz
11:39
created
src/ORM/DataList.php 1 patch
Doc Comments   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
      * Returns a new DataList instance with the specified query parameter assigned
180 180
      *
181 181
      * @param string|array $keyOrArray Either the single key to set, or an array of key value pairs to set
182
-     * @param mixed $val If $keyOrArray is not an array, this is the value to set
182
+     * @param string $val If $keyOrArray is not an array, this is the value to set
183 183
      * @return static
184 184
      */
185 185
     public function setDataQueryParam($keyOrArray, $val = null)
@@ -556,7 +556,7 @@  discard block
 block discarded – undo
556 556
      * Check if the given field specification could be interpreted as an unquoted relation name
557 557
      *
558 558
      * @param string $field
559
-     * @return bool
559
+     * @return integer
560 560
      */
561 561
     protected function isValidRelationName($field)
562 562
     {
@@ -669,7 +669,7 @@  discard block
 block discarded – undo
669 669
      * @param int $order A numerical index to control the order that joins are added to the query; lower order values
670 670
      * will cause the query to appear first. The default is 20, and joins created automatically by the
671 671
      * ORM have a value of 10.
672
-     * @param array $parameters Any additional parameters if the join is a parameterised subquery
672
+     * @param string[] $parameters Any additional parameters if the join is a parameterised subquery
673 673
      * @return static
674 674
      */
675 675
     public function innerJoin($table, $onClause, $alias = null, $order = 20, $parameters = array())
@@ -688,7 +688,7 @@  discard block
 block discarded – undo
688 688
      * @param int $order A numerical index to control the order that joins are added to the query; lower order values
689 689
      * will cause the query to appear first. The default is 20, and joins created automatically by the
690 690
      * ORM have a value of 10.
691
-     * @param array $parameters Any additional parameters if the join is a parameterised subquery
691
+     * @param string[] $parameters Any additional parameters if the join is a parameterised subquery
692 692
      * @return static
693 693
      */
694 694
     public function leftJoin($table, $onClause, $alias = null, $order = 20, $parameters = array())
@@ -815,7 +815,7 @@  discard block
 block discarded – undo
815 815
      * Returns an Iterator for this DataList.
816 816
      * This function allows you to use DataLists in foreach loops
817 817
      *
818
-     * @return Generator
818
+     * @return \Generator
819 819
      */
820 820
     public function getIterator()
821 821
     {
@@ -838,7 +838,7 @@  discard block
 block discarded – undo
838 838
      * Return the maximum value of the given field in this DataList
839 839
      *
840 840
      * @param string $fieldName
841
-     * @return mixed
841
+     * @return string
842 842
      */
843 843
     public function max($fieldName)
844 844
     {
@@ -849,7 +849,7 @@  discard block
 block discarded – undo
849 849
      * Return the minimum value of the given field in this DataList
850 850
      *
851 851
      * @param string $fieldName
852
-     * @return mixed
852
+     * @return string
853 853
      */
854 854
     public function min($fieldName)
855 855
     {
@@ -860,7 +860,7 @@  discard block
 block discarded – undo
860 860
      * Return the average value of the given field in this DataList
861 861
      *
862 862
      * @param string $fieldName
863
-     * @return mixed
863
+     * @return string
864 864
      */
865 865
     public function avg($fieldName)
866 866
     {
@@ -871,7 +871,7 @@  discard block
 block discarded – undo
871 871
      * Return the sum of the values of the given field in this DataList
872 872
      *
873 873
      * @param string $fieldName
874
-     * @return mixed
874
+     * @return string
875 875
      */
876 876
     public function sum($fieldName)
877 877
     {
@@ -930,7 +930,7 @@  discard block
 block discarded – undo
930 930
     /**
931 931
      * Restrict the columns to fetch into this DataList
932 932
      *
933
-     * @param array $queriedColumns
933
+     * @param string[] $queriedColumns
934 934
      * @return static
935 935
      */
936 936
     public function setQueriedColumns($queriedColumns)
@@ -1176,7 +1176,7 @@  discard block
 block discarded – undo
1176 1176
     /**
1177 1177
      * Returns item stored in list with index $key
1178 1178
      *
1179
-     * @param mixed $key
1179
+     * @param integer $key
1180 1180
      * @return DataObject
1181 1181
      */
1182 1182
     public function offsetGet($key)
Please login to merge, or discard this patch.