@@ -1239,13 +1239,14 @@ public function timestampTz($column, $precision = null)
1239
1239
* Add nullable creation and update timestamps to the table.
1240
1240
*
1241
1241
* @param int|null $precision
1242
- * @return void
1242
+ * @return Illuminate\Support\Collection<int, \Illuminate\Database\Schema\ColumnDefinition>
1243
1243
*/
1244
1244
public function timestamps ($ precision = null )
1245
1245
{
1246
- $ this ->timestamp ('created_at ' , $ precision )->nullable ();
1247
-
1248
- $ this ->timestamp ('updated_at ' , $ precision )->nullable ();
1246
+ return new Collection ([
1247
+ $ this ->timestamp ('created_at ' , $ precision )->nullable (),
1248
+ $ this ->timestamp ('updated_at ' , $ precision )->nullable (),
1249
+ ]);
1249
1250
}
1250
1251
1251
1252
/**
@@ -1254,37 +1255,39 @@ public function timestamps($precision = null)
1254
1255
* Alias for self::timestamps().
1255
1256
*
1256
1257
* @param int|null $precision
1257
- * @return void
1258
+ * @return Illuminate\Support\Collection<int, \Illuminate\Database\Schema\ColumnDefinition>
1258
1259
*/
1259
1260
public function nullableTimestamps ($ precision = null )
1260
1261
{
1261
- $ this ->timestamps ($ precision );
1262
+ return $ this ->timestamps ($ precision );
1262
1263
}
1263
1264
1264
1265
/**
1265
1266
* Add creation and update timestampTz columns to the table.
1266
1267
*
1267
1268
* @param int|null $precision
1268
- * @return void
1269
+ * @return Illuminate\Support\Collection<int, \Illuminate\Database\Schema\ColumnDefinition>
1269
1270
*/
1270
1271
public function timestampsTz ($ precision = null )
1271
1272
{
1272
- $ this ->timestampTz ('created_at ' , $ precision )->nullable ();
1273
-
1274
- $ this ->timestampTz ('updated_at ' , $ precision )->nullable ();
1273
+ return new Collection ([
1274
+ $ this ->timestampTz ('created_at ' , $ precision )->nullable (),
1275
+ $ this ->timestampTz ('updated_at ' , $ precision )->nullable (),
1276
+ ]);
1275
1277
}
1276
1278
1277
1279
/**
1278
1280
* Add creation and update datetime columns to the table.
1279
1281
*
1280
1282
* @param int|null $precision
1281
- * @return void
1283
+ * @return Illuminate\Support\Collection<int, \Illuminate\Database\Schema\ColumnDefinition>
1282
1284
*/
1283
1285
public function datetimes ($ precision = null )
1284
1286
{
1285
- $ this ->datetime ('created_at ' , $ precision )->nullable ();
1286
-
1287
- $ this ->datetime ('updated_at ' , $ precision )->nullable ();
1287
+ return new Collection ([
1288
+ $ this ->datetime ('created_at ' , $ precision )->nullable (),
1289
+ $ this ->datetime ('updated_at ' , $ precision )->nullable (),
1290
+ ]);
1288
1291
}
1289
1292
1290
1293
/**
0 commit comments