File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 4
4
5
5
namespace Laravel \Prompts \Testing ;
6
6
7
+ use Illuminate \Support \Collection ;
7
8
use Laravel \Prompts \Note ;
8
9
use Laravel \Prompts \Table ;
9
10
use Laravel \Prompts \Prompt ;
@@ -25,8 +26,6 @@ trait InteractsWithPrompts
25
26
public function setUpInteractsWithPrompts (): void
26
27
{
27
28
$ expectOutputFromPrompt = function (Prompt $ prompt ) {
28
- /** @var PendingCommand $this */
29
-
30
29
$ prompt ->setOutput ($ output = new BufferedOutput );
31
30
$ prompt ->display ();
32
31
@@ -87,7 +86,7 @@ public function setUpInteractsWithPrompts(): void
87
86
88
87
PendingCommand::macro (
89
88
'expectsPromptTable ' ,
90
- fn (array $ headers , array $ rows ) => $ expectOutputFromPrompt ->call (
89
+ fn (array | Collection $ headers , array | Collection | null $ rows = null ) => $ expectOutputFromPrompt ->call (
91
90
$ this ,
92
91
new Table ($ headers , $ rows )
93
92
)
You can’t perform that action at this time.
0 commit comments