Completed
Pull Request — master (#3610)
by Sergei
03:27 queued 10s
created
lib/Doctrine/DBAL/Platforms/DB2Platform.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -772,6 +772,7 @@  discard block
 block discarded – undo
772 772
 
773 773
     /**
774 774
      * {@inheritDoc}
775
+     * @param string $start
775 776
      */
776 777
     public function getLocateExpression(string $string, string $substring, ?string $start = null) : string
777 778
     {
@@ -784,6 +785,7 @@  discard block
 block discarded – undo
784 785
 
785 786
     /**
786 787
      * {@inheritDoc}
788
+     * @param string $length
787 789
      */
788 790
     public function getSubstringExpression(string $string, string $start, ?string $length = null) : string
789 791
     {
Please login to merge, or discard this patch.
lib/Doctrine/DBAL/Platforms/MySqlPlatform.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -146,6 +146,7 @@  discard block
 block discarded – undo
146 146
      *
147 147
      * Two approaches to listing the table indexes. The information_schema is
148 148
      * preferred, because it doesn't cause problems with SQL keywords such as "order" or "table".
149
+     * @param string $currentDatabase
149 150
      */
150 151
     public function getListTableIndexesSQL(string $table, ?string $currentDatabase = null) : string
151 152
     {
@@ -173,6 +174,7 @@  discard block
 block discarded – undo
173 174
 
174 175
     /**
175 176
      * {@inheritDoc}
177
+     * @param string $database
176 178
      */
177 179
     public function getListTableForeignKeysSQL(string $table, ?string $database = null) : string
178 180
     {
@@ -322,6 +324,7 @@  discard block
 block discarded – undo
322 324
 
323 325
     /**
324 326
      * {@inheritDoc}
327
+     * @param string $database
325 328
      */
326 329
     public function getListTableColumnsSQL(string $table, ?string $database = null) : string
327 330
     {
Please login to merge, or discard this patch.
lib/Doctrine/DBAL/Platforms/OraclePlatform.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -681,6 +681,7 @@
 block discarded – undo
681 681
 
682 682
     /**
683 683
      * {@inheritDoc}
684
+     * @param string $sequence
684 685
      */
685 686
     public function getDropSequenceSQL($sequence) : string
686 687
     {
Please login to merge, or discard this patch.
lib/Doctrine/DBAL/Platforms/PostgreSqlPlatform.php 1 patch
Doc Comments   +13 added lines patch added patch discarded remove patch
@@ -673,6 +673,7 @@  discard block
 block discarded – undo
673 673
 
674 674
     /**
675 675
      * {@inheritdoc}
676
+     * @param string|null $comment
676 677
      */
677 678
     public function getCommentOnColumnSQL(string $tableName, string $columnName, ?string $comment) : string
678 679
     {
@@ -724,6 +725,7 @@  discard block
 block discarded – undo
724 725
 
725 726
     /**
726 727
      * {@inheritDoc}
728
+     * @param string $sequence
727 729
      */
728 730
     public function getDropSequenceSQL($sequence) : string
729 731
     {
@@ -855,6 +857,7 @@  discard block
 block discarded – undo
855 857
      * {@inheritDoc}
856 858
      *
857 859
      * Postgres wants boolean values converted to the strings 'true'/'false'.
860
+     * @param string|boolean $item
858 861
      */
859 862
     public function convertBooleans($item)
860 863
     {
@@ -864,6 +867,10 @@  discard block
 block discarded – undo
864 867
 
865 868
         return $this->doConvertBooleans(
866 869
             $item,
870
+
871
+            /**
872
+             * @param string|boolean $boolean
873
+             */
867 874
             static function ($boolean) : string {
868 875
                 if ($boolean === null) {
869 876
                     return 'NULL';
@@ -876,6 +883,7 @@  discard block
 block discarded – undo
876 883
 
877 884
     /**
878 885
      * {@inheritDoc}
886
+     * @param boolean|string $item
879 887
      */
880 888
     public function convertBooleansToDatabaseValue($item)
881 889
     {
@@ -885,6 +893,10 @@  discard block
 block discarded – undo
885 893
 
886 894
         return $this->doConvertBooleans(
887 895
             $item,
896
+
897
+            /**
898
+             * @param boolean|string $boolean
899
+             */
888 900
             static function ($boolean) : ?int {
889 901
                 return $boolean === null ? null : (int) $boolean;
890 902
             }
@@ -893,6 +905,7 @@  discard block
 block discarded – undo
893 905
 
894 906
     /**
895 907
      * {@inheritDoc}
908
+     * @param string $item
896 909
      */
897 910
     public function convertFromBoolean($item) : ?bool
898 911
     {
Please login to merge, or discard this patch.
lib/Doctrine/DBAL/Platforms/SQLAnywherePlatform.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -328,6 +328,7 @@  discard block
 block discarded – undo
328 328
 
329 329
     /**
330 330
      * {@inheritdoc}
331
+     * @param string|null $comment
331 332
      */
332 333
     public function getCommentOnColumnSQL(string $tableName, string $columnName, ?string $comment) : string
333 334
     {
@@ -382,6 +383,7 @@  discard block
 block discarded – undo
382 383
      * {@inheritdoc}
383 384
      *
384 385
      * Appends SQL Anywhere specific flags if given.
386
+     * @param string $table
385 387
      */
386 388
     public function getCreateIndexSQL(Index $index, $table) : string
387 389
     {
@@ -936,6 +938,7 @@  discard block
 block discarded – undo
936 938
 
937 939
     /**
938 940
      * {@inheritdoc}
941
+     * @param string $start
939 942
      */
940 943
     public function getLocateExpression(string $string, string $substring, ?string $start = null) : string
941 944
     {
@@ -1055,6 +1058,7 @@  discard block
 block discarded – undo
1055 1058
 
1056 1059
     /**
1057 1060
      * {@inheritdoc}
1061
+     * @param string $length
1058 1062
      */
1059 1063
     public function getSubstringExpression(string $string, string $start, ?string $length = null) : string
1060 1064
     {
@@ -1091,6 +1095,7 @@  discard block
 block discarded – undo
1091 1095
 
1092 1096
     /**
1093 1097
      * {@inheritdoc}
1098
+     * @param string $char
1094 1099
      */
1095 1100
     public function getTrimExpression(string $str, int $mode = TrimMode::UNSPECIFIED, ?string $char = null) : string
1096 1101
     {
@@ -1335,6 +1340,9 @@  discard block
 block discarded – undo
1335 1340
         return $matches[1] . $limitOffsetClause . ' ' . $matches[3];
1336 1341
     }
1337 1342
 
1343
+    /**
1344
+     * @param integer $offset
1345
+     */
1338 1346
     private function getTopClauseSQL(?int $limit, ?int $offset) : string
1339 1347
     {
1340 1348
         if ($offset > 0) {
Please login to merge, or discard this patch.
lib/Doctrine/DBAL/Platforms/SqlitePlatform.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -597,6 +597,7 @@
 block discarded – undo
597 597
 
598 598
     /**
599 599
      * {@inheritDoc}
600
+     * @param string $comment
600 601
      */
601 602
     public function getInlineColumnCommentSQL(?string $comment) : string
602 603
     {
Please login to merge, or discard this patch.
lib/Doctrine/DBAL/Platforms/SQLServerPlatform.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -461,6 +461,7 @@
 block discarded – undo
461 461
 
462 462
     /**
463 463
      * {@inheritDoc}
464
+     * @param string $table
464 465
      */
465 466
     public function getCreateIndexSQL(Index $index, $table) : string
466 467
     {
Please login to merge, or discard this patch.
lib/Doctrine/DBAL/Query/Expression/ExpressionBuilder.php 1 patch
Doc Comments   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      *     // (u.type = ?) AND (u.role = ?)
50 50
      *     $expr->andX('u.type = ?', 'u.role = ?'));
51 51
      *
52
-     * @param mixed $x Optional clause. Defaults = null, but requires
52
+     * @param string $x Optional clause. Defaults = null, but requires
53 53
      *                 at least one defined when converting to string.
54 54
      */
55 55
     public function andX($x = null) : CompositeExpression
@@ -96,8 +96,8 @@  discard block
 block discarded – undo
96 96
      *     // u.id = ?
97 97
      *     $expr->eq('u.id', '?');
98 98
      *
99
-     * @param mixed $x The left expression.
100
-     * @param mixed $y The right expression.
99
+     * @param string $x The left expression.
100
+     * @param string $y The right expression.
101 101
      */
102 102
     public function eq($x, $y) : string
103 103
     {
@@ -113,8 +113,8 @@  discard block
 block discarded – undo
113 113
      *     // u.id <> 1
114 114
      *     $q->where($q->expr()->neq('u.id', '1'));
115 115
      *
116
-     * @param mixed $x The left expression.
117
-     * @param mixed $y The right expression.
116
+     * @param string $x The left expression.
117
+     * @param string $y The right expression.
118 118
      */
119 119
     public function neq($x, $y) : string
120 120
     {
@@ -130,8 +130,8 @@  discard block
 block discarded – undo
130 130
      *     // u.id < ?
131 131
      *     $q->where($q->expr()->lt('u.id', '?'));
132 132
      *
133
-     * @param mixed $x The left expression.
134
-     * @param mixed $y The right expression.
133
+     * @param string $x The left expression.
134
+     * @param string $y The right expression.
135 135
      */
136 136
     public function lt($x, $y) : string
137 137
     {
@@ -147,8 +147,8 @@  discard block
 block discarded – undo
147 147
      *     // u.id <= ?
148 148
      *     $q->where($q->expr()->lte('u.id', '?'));
149 149
      *
150
-     * @param mixed $x The left expression.
151
-     * @param mixed $y The right expression.
150
+     * @param string $x The left expression.
151
+     * @param string $y The right expression.
152 152
      */
153 153
     public function lte($x, $y) : string
154 154
     {
@@ -164,8 +164,8 @@  discard block
 block discarded – undo
164 164
      *     // u.id > ?
165 165
      *     $q->where($q->expr()->gt('u.id', '?'));
166 166
      *
167
-     * @param mixed $x The left expression.
168
-     * @param mixed $y The right expression.
167
+     * @param string $x The left expression.
168
+     * @param string $y The right expression.
169 169
      */
170 170
     public function gt($x, $y) : string
171 171
     {
@@ -181,8 +181,8 @@  discard block
 block discarded – undo
181 181
      *     // u.id >= ?
182 182
      *     $q->where($q->expr()->gte('u.id', '?'));
183 183
      *
184
-     * @param mixed $x The left expression.
185
-     * @param mixed $y The right expression.
184
+     * @param string $x The left expression.
185
+     * @param string $y The right expression.
186 186
      */
187 187
     public function gte($x, $y) : string
188 188
     {
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
      * Creates a LIKE() comparison expression with the given arguments.
214 214
      *
215 215
      * @param string $x Field in string format to be inspected by LIKE() comparison.
216
-     * @param mixed  $y Argument to be used in LIKE() comparison.
216
+     * @param string  $y Argument to be used in LIKE() comparison.
217 217
      */
218 218
     public function like(string $x, $y/*, ?string $escapeChar = null */) : string
219 219
     {
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
      * Creates a NOT LIKE() comparison expression with the given arguments.
226 226
      *
227 227
      * @param string $x Field in string format to be inspected by NOT LIKE() comparison.
228
-     * @param mixed  $y Argument to be used in NOT LIKE() comparison.
228
+     * @param string  $y Argument to be used in NOT LIKE() comparison.
229 229
      */
230 230
     public function notLike(string $x, $y/*, ?string $escapeChar = null */) : string
231 231
     {
Please login to merge, or discard this patch.
lib/Doctrine/DBAL/Query/QueryBuilder.php 1 patch
Doc Comments   +10 added lines, -9 removed lines patch added patch discarded remove patch
@@ -454,7 +454,7 @@  discard block
 block discarded – undo
454 454
      *         ->leftJoin('u', 'phonenumbers', 'p', 'u.id = p.user_id');
455 455
      * </code>
456 456
      *
457
-     * @param mixed $select The selection expressions.
457
+     * @param string $select The selection expressions.
458 458
      *
459 459
      * @return $this This QueryBuilder instance.
460 460
      */
@@ -501,7 +501,7 @@  discard block
 block discarded – undo
501 501
      *         ->leftJoin('u', 'phonenumbers', 'u.id = p.user_id');
502 502
      * </code>
503 503
      *
504
-     * @param mixed $select The selection expression.
504
+     * @param string $select The selection expression.
505 505
      *
506 506
      * @return $this This QueryBuilder instance.
507 507
      */
@@ -809,7 +809,7 @@  discard block
 block discarded – undo
809 809
      *
810 810
      * @see where()
811 811
      *
812
-     * @param mixed $where The query restrictions.
812
+     * @param string $where The query restrictions.
813 813
      *
814 814
      * @return $this This QueryBuilder instance.
815 815
      */
@@ -842,7 +842,7 @@  discard block
 block discarded – undo
842 842
      *
843 843
      * @see where()
844 844
      *
845
-     * @param mixed $where The WHERE statement.
845
+     * @param string $where The WHERE statement.
846 846
      *
847 847
      * @return $this This QueryBuilder instance.
848 848
      */
@@ -967,7 +967,7 @@  discard block
 block discarded – undo
967 967
      * Specifies a restriction over the groups of the query.
968 968
      * Replaces any previous having restrictions, if any.
969 969
      *
970
-     * @param mixed $having The restriction over the groups.
970
+     * @param string $having The restriction over the groups.
971 971
      *
972 972
      * @return $this This QueryBuilder instance.
973 973
      */
@@ -984,7 +984,7 @@  discard block
 block discarded – undo
984 984
      * Adds a restriction over the groups of the query, forming a logical
985 985
      * conjunction with any existing having restrictions.
986 986
      *
987
-     * @param mixed $having The restriction to append.
987
+     * @param string $having The restriction to append.
988 988
      *
989 989
      * @return $this This QueryBuilder instance.
990 990
      */
@@ -1007,7 +1007,7 @@  discard block
 block discarded – undo
1007 1007
      * Adds a restriction over the groups of the query, forming a logical
1008 1008
      * disjunction with any existing having restrictions.
1009 1009
      *
1010
-     * @param mixed $having The restriction to add.
1010
+     * @param string $having The restriction to add.
1011 1011
      *
1012 1012
      * @return $this This QueryBuilder instance.
1013 1013
      */
@@ -1077,6 +1077,7 @@  discard block
 block discarded – undo
1077 1077
      * Resets SQL parts.
1078 1078
      *
1079 1079
      * @param array<int, string>|null $queryPartNames
1080
+     * @param string[] $queryPartNames
1080 1081
      *
1081 1082
      * @return $this This QueryBuilder instance.
1082 1083
      */
@@ -1260,7 +1261,7 @@  discard block
 block discarded – undo
1260 1261
      *
1261 1262
      * @link http://www.zetacomponents.org
1262 1263
      *
1263
-     * @param mixed  $value
1264
+     * @param integer  $value
1264 1265
      * @param mixed  $type
1265 1266
      * @param string $placeHolder The name to bind with. The string must start with a colon ':'.
1266 1267
      *
@@ -1294,7 +1295,7 @@  discard block
 block discarded – undo
1294 1295
      *     ->orWhere('u.username = ' . $qb->createPositionalParameter('Bar', ParameterType::STRING))
1295 1296
      * </code>
1296 1297
      *
1297
-     * @param mixed $value
1298
+     * @param integer $value
1298 1299
      */
1299 1300
     public function createPositionalParameter($value, int $type = ParameterType::STRING) : string
1300 1301
     {
Please login to merge, or discard this patch.