Completed
Push — fix-php7-session-error-handlin... ( bd85fa...d04e0f )
by Alexander
36:00
created
framework/db/Migration.php 1 patch
Doc Comments   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
     /**
106 106
      * This method contains the logic to be executed when applying this migration.
107 107
      * Child classes may override this method to provide actual migration logic.
108
-     * @return bool return a false value to indicate the migration fails
108
+     * @return false|null return a false value to indicate the migration fails
109 109
      * and should not proceed further. All other return values mean the migration succeeds.
110 110
      */
111 111
     public function up()
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
      * This method contains the logic to be executed when removing this migration.
135 135
      * The default implementation throws an exception indicating the migration cannot be removed.
136 136
      * Child classes may override this method if the corresponding migrations can be removed.
137
-     * @return bool return a false value to indicate the migration fails
137
+     * @return false|null return a false value to indicate the migration fails
138 138
      * and should not proceed further. All other return values mean the migration succeeds.
139 139
      */
140 140
     public function down()
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
      * Note: Not all DBMS support transactions. And some DB queries cannot be put into a transaction. For some examples,
179 179
      * please refer to [implicit commit](http://dev.mysql.com/doc/refman/5.7/en/implicit-commit.html).
180 180
      *
181
-     * @return bool return a false value to indicate the migration fails
181
+     * @return boolean|null return a false value to indicate the migration fails
182 182
      * and should not proceed further. All other return values mean the migration succeeds.
183 183
      */
184 184
     public function safeUp()
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
      * Note: Not all DBMS support transactions. And some DB queries cannot be put into a transaction. For some examples,
196 196
      * please refer to [implicit commit](http://dev.mysql.com/doc/refman/5.7/en/implicit-commit.html).
197 197
      *
198
-     * @return bool return a false value to indicate the migration fails
198
+     * @return boolean|null return a false value to indicate the migration fails
199 199
      * and should not proceed further. All other return values mean the migration succeeds.
200 200
      */
201 201
     public function safeDown()
@@ -406,7 +406,7 @@  discard block
 block discarded – undo
406 406
      * The method will properly quote the table and column names.
407 407
      * @param string $name the name of the primary key constraint.
408 408
      * @param string $table the table that the primary key constraint will be added to.
409
-     * @param string|array $columns comma separated string or array of columns that the primary key will consist of.
409
+     * @param string[] $columns comma separated string or array of columns that the primary key will consist of.
410 410
      */
411 411
     public function addPrimaryKey($name, $table, $columns)
412 412
     {
@@ -432,9 +432,9 @@  discard block
 block discarded – undo
432 432
      * The method will properly quote the table and column names.
433 433
      * @param string $name the name of the foreign key constraint.
434 434
      * @param string $table the table that the foreign key constraint will be added to.
435
-     * @param string|array $columns the name of the column to that the constraint will be added on. If there are multiple columns, separate them with commas or use an array.
435
+     * @param string $columns the name of the column to that the constraint will be added on. If there are multiple columns, separate them with commas or use an array.
436 436
      * @param string $refTable the table that the foreign key references to.
437
-     * @param string|array $refColumns the name of the column that the foreign key references to. If there are multiple columns, separate them with commas or use an array.
437
+     * @param string $refColumns the name of the column that the foreign key references to. If there are multiple columns, separate them with commas or use an array.
438 438
      * @param string $delete the ON DELETE option. Most DBMS support these options: RESTRICT, CASCADE, NO ACTION, SET DEFAULT, SET NULL
439 439
      * @param string $update the ON UPDATE option. Most DBMS support these options: RESTRICT, CASCADE, NO ACTION, SET DEFAULT, SET NULL
440 440
      */
@@ -461,7 +461,7 @@  discard block
 block discarded – undo
461 461
      * Builds and executes a SQL statement for creating a new index.
462 462
      * @param string $name the name of the index. The name will be properly quoted by the method.
463 463
      * @param string $table the table that the new index will be created for. The table name will be properly quoted by the method.
464
-     * @param string|array $columns the column(s) that should be included in the index. If there are multiple columns, please separate them
464
+     * @param string $columns the column(s) that should be included in the index. If there are multiple columns, please separate them
465 465
      * by commas or use an array. Each column name will be properly quoted by the method. Quoting will be skipped for column names that
466 466
      * include a left parenthesis "(".
467 467
      * @param bool $unique whether to add UNIQUE constraint on the created index.
Please login to merge, or discard this patch.