@@ -13,15 +13,15 @@ class FluentPendingBatch extends PendingBatchFake
13
13
/**
14
14
* The jobs that have been checked.
15
15
*
16
- * @var array
16
+ * @var array<string>
17
17
*/
18
18
protected $ expected = [];
19
19
20
20
/**
21
21
* Assert that the batch contains a job of the given type.
22
22
*
23
23
* @param string|int $expectedJob
24
- * @param array $expectedParameters
24
+ * @param array<mixed> $expectedParameters
25
25
* @return $this
26
26
*/
27
27
public function has (string |int $ expectedJob , array $ expectedParameters = [])
@@ -70,7 +70,7 @@ public function missing(string $unexpectedJob)
70
70
/**
71
71
* Assert that the batch contains all of the given jobs.
72
72
*
73
- * @param array $expectedJobs
73
+ * @param array<string> $expectedJobs
74
74
* @return $this
75
75
*/
76
76
public function hasAll (array $ expectedJobs )
@@ -89,7 +89,7 @@ public function hasAll(array $expectedJobs)
89
89
/**
90
90
* Assert that the batch does not contain any of the given jobs.
91
91
*
92
- * @param array $unexpectedJobs
92
+ * @param array<string> $unexpectedJobs
93
93
* @return $this
94
94
*/
95
95
public function missingAll (array $ unexpectedJobs )
@@ -108,7 +108,7 @@ public function missingAll(array $unexpectedJobs)
108
108
/**
109
109
* Assert that the batch contains any of the given jobs.
110
110
*
111
- * @param array $expectedJobs
111
+ * @param array<string> $expectedJobs
112
112
* @return $this
113
113
*/
114
114
public function hasAny (...$ expectedJobs )
@@ -163,7 +163,7 @@ public function first(Closure $callback)
163
163
*
164
164
* @param int $index
165
165
* @param Closure $callback
166
- * @param array $parameters
166
+ * @param array<mixed> $parameters
167
167
* @return $this
168
168
*/
169
169
public function nth (int $ index , Closure |string $ callback , array $ parameters = [])
@@ -214,7 +214,7 @@ public function nth(int $index, Closure|string $callback, array $parameters = []
214
214
/**
215
215
* Assert that the batch contains exactly the given jobs with the specified parameters.
216
216
*
217
- * @param array $expectedJobs
217
+ * @param array<string, array<mixed>> $expectedJobs
218
218
* @return $this
219
219
*/
220
220
public function equal (array $ expectedJobs )
@@ -294,7 +294,7 @@ public function etc()
294
294
*
295
295
* @param mixed $actual
296
296
* @param string $expectedClass
297
- * @param array $expectedParameters
297
+ * @param array<mixed> $expectedParameters
298
298
* @return bool
299
299
*/
300
300
protected function parametersMatch ($ actual , string $ expectedClass , array $ expectedParameters )
0 commit comments