@@ -23,7 +23,7 @@ class ExceptionHandlerFake implements ExceptionHandler, Fake
23
23
/**
24
24
* All of the exceptions that have been reported.
25
25
*
26
- * @var array<int, \Throwable>
26
+ * @var list< \Throwable>
27
27
*/
28
28
protected $ reported = [];
29
29
@@ -38,7 +38,7 @@ class ExceptionHandlerFake implements ExceptionHandler, Fake
38
38
* Create a new exception handler fake.
39
39
*
40
40
* @param \Illuminate\Contracts\Debug\ExceptionHandler $handler
41
- * @param array<int, class-string<\Throwable>> $exceptions
41
+ * @param list< class-string<\Throwable>> $exceptions
42
42
* @return void
43
43
*/
44
44
public function __construct (
@@ -61,7 +61,7 @@ public function handler()
61
61
/**
62
62
* Assert if an exception of the given type has been reported.
63
63
*
64
- * @param \Closure| string $exception
64
+ * @param ( \Closure(\Throwable): bool)|class- string<\Throwable> $exception
65
65
* @return void
66
66
*/
67
67
public function assertReported (Closure |string $ exception )
@@ -107,7 +107,7 @@ public function assertReportedCount(int $count)
107
107
/**
108
108
* Assert if an exception of the given type has not been reported.
109
109
*
110
- * @param \Closure| string $exception
110
+ * @param ( \Closure(\Throwable): bool)|class- string<\Throwable> $exception
111
111
* @return void
112
112
*/
113
113
public function assertNotReported (Closure |string $ exception )
@@ -263,7 +263,7 @@ public function setHandler(ExceptionHandler $handler)
263
263
}
264
264
265
265
/**
266
- * Handle dynamic method calls to the mailer .
266
+ * Handle dynamic method calls to the handler .
267
267
*
268
268
* @param string $method
269
269
* @param array<string, mixed> $parameters
0 commit comments