@@ -19,8 +19,8 @@ trait InteractsWithDatabase
19
19
/**
20
20
* Assert that a given where condition exists in the database.
21
21
*
22
- * @param \Illuminate\Database\Eloquent\Model|string $table
23
- * @param array $data
22
+ * @param \Illuminate\Database\Eloquent\Model|class-string<\Illuminate\Database\Eloquent\Model>| string $table
23
+ * @param array<string, mixed> $data
24
24
* @param string|null $connection
25
25
* @return $this
26
26
*/
@@ -43,8 +43,8 @@ protected function assertDatabaseHas($table, array $data = [], $connection = nul
43
43
/**
44
44
* Assert that a given where condition does not exist in the database.
45
45
*
46
- * @param \Illuminate\Database\Eloquent\Model|string $table
47
- * @param array $data
46
+ * @param \Illuminate\Database\Eloquent\Model|class-string<\Illuminate\Database\Eloquent\Model>| string $table
47
+ * @param array<string, mixed> $data
48
48
* @param string|null $connection
49
49
* @return $this
50
50
*/
@@ -69,7 +69,7 @@ protected function assertDatabaseMissing($table, array $data = [], $connection =
69
69
/**
70
70
* Assert the count of table entries.
71
71
*
72
- * @param \Illuminate\Database\Eloquent\Model|string $table
72
+ * @param \Illuminate\Database\Eloquent\Model|class-string<\Illuminate\Database\Eloquent\Model>| string $table
73
73
* @param int $count
74
74
* @param string|null $connection
75
75
* @return $this
@@ -86,7 +86,7 @@ protected function assertDatabaseCount($table, int $count, $connection = null)
86
86
/**
87
87
* Assert that the given table has no entries.
88
88
*
89
- * @param \Illuminate\Database\Eloquent\Model|string $table
89
+ * @param \Illuminate\Database\Eloquent\Model|class-string<\Illuminate\Database\Eloquent\Model>| string $table
90
90
* @param string|null $connection
91
91
* @return $this
92
92
*/
@@ -102,8 +102,8 @@ protected function assertDatabaseEmpty($table, $connection = null)
102
102
/**
103
103
* Assert the given record has been "soft deleted".
104
104
*
105
- * @param \Illuminate\Database\Eloquent\Model|string $table
106
- * @param array $data
105
+ * @param \Illuminate\Database\Eloquent\Model|class-string<\Illuminate\Database\Eloquent\Model>| string $table
106
+ * @param array<string, mixed> $data
107
107
* @param string|null $connection
108
108
* @param string|null $deletedAtColumn
109
109
* @return $this
@@ -134,8 +134,8 @@ protected function assertSoftDeleted($table, array $data = [], $connection = nul
134
134
/**
135
135
* Assert the given record has not been "soft deleted".
136
136
*
137
- * @param \Illuminate\Database\Eloquent\Model|string $table
138
- * @param array $data
137
+ * @param \Illuminate\Database\Eloquent\Model|class-string<\Illuminate\Database\Eloquent\Model>| string $table
138
+ * @param array<string, mixed> $data
139
139
* @param string|null $connection
140
140
* @param string|null $deletedAtColumn
141
141
* @return $this
@@ -166,7 +166,7 @@ protected function assertNotSoftDeleted($table, array $data = [], $connection =
166
166
/**
167
167
* Assert the given model exists in the database.
168
168
*
169
- * @param \Illuminate\Database\Eloquent\Model $model
169
+ * @param \Illuminate\Database\Eloquent\Model|class-string<\Illuminate\Database\Eloquent\Model>|string $model
170
170
* @return $this
171
171
*/
172
172
protected function assertModelExists ($ model )
@@ -177,7 +177,7 @@ protected function assertModelExists($model)
177
177
/**
178
178
* Assert the given model does not exist in the database.
179
179
*
180
- * @param \Illuminate\Database\Eloquent\Model $model
180
+ * @param \Illuminate\Database\Eloquent\Model|class-string<\Illuminate\Database\Eloquent\Model>|string $model
181
181
* @return $this
182
182
*/
183
183
protected function assertModelMissing ($ model )
@@ -255,7 +255,7 @@ public function castAsJson($value, $connection = null)
255
255
* Get the database connection.
256
256
*
257
257
* @param string|null $connection
258
- * @param string|null $table
258
+ * @param \Illuminate\Database\Eloquent\Model|class- string<\Illuminate\Database\Eloquent\Model>|string $table
259
259
* @return \Illuminate\Database\Connection
260
260
*/
261
261
protected function getConnection ($ connection = null , $ table = null )
@@ -270,7 +270,7 @@ protected function getConnection($connection = null, $table = null)
270
270
/**
271
271
* Get the table name from the given model or string.
272
272
*
273
- * @param \Illuminate\Database\Eloquent\Model|string $table
273
+ * @param \Illuminate\Database\Eloquent\Model|class-string<\Illuminate\Database\Eloquent\Model>| string $table
274
274
* @return string
275
275
*/
276
276
protected function getTable ($ table )
@@ -285,7 +285,7 @@ protected function getTable($table)
285
285
/**
286
286
* Get the table connection specified in the given model.
287
287
*
288
- * @param \Illuminate\Database\Eloquent\Model|string $table
288
+ * @param \Illuminate\Database\Eloquent\Model|class-string<\Illuminate\Database\Eloquent\Model>| string $table
289
289
* @return string|null
290
290
*/
291
291
protected function getTableConnection ($ table )
@@ -300,7 +300,7 @@ protected function getTableConnection($table)
300
300
/**
301
301
* Get the table column name used for soft deletes.
302
302
*
303
- * @param string $table
303
+ * @param \Illuminate\Database\Eloquent\Model|class-string<\Illuminate\Database\Eloquent\Model>| string $table
304
304
* @param string $defaultColumnName
305
305
* @return string
306
306
*/
@@ -312,7 +312,7 @@ protected function getDeletedAtColumn($table, $defaultColumnName = 'deleted_at')
312
312
/**
313
313
* Get the model entity from the given model or string.
314
314
*
315
- * @param \Illuminate\Database\Eloquent\Model|string $table
315
+ * @param \Illuminate\Database\Eloquent\Model|class-string<\Illuminate\Database\Eloquent\Model>| string $table
316
316
* @return \Illuminate\Database\Eloquent\Model|null
317
317
*/
318
318
protected function newModelFor ($ table )
@@ -323,7 +323,7 @@ protected function newModelFor($table)
323
323
/**
324
324
* Seed a given database connection.
325
325
*
326
- * @param array |string $class
326
+ * @param list<string>|class-string<\Illuminate\Database\Seeder> |string $class
327
327
* @return $this
328
328
*/
329
329
public function seed ($ class = 'Database \\Seeders \\DatabaseSeeder ' )
0 commit comments