Skip to content

Commit 07b55bf

Browse files
nicoorfitaylorotwelldriesvints
authored
Fix undefined array key "type" on empty array dump (#413)
* FIX: Undefined array key "type" on empty array dump * Update src/Commands/Concerns/InteractsWithIO.php Co-authored-by: Dries Vints <[email protected]> * Update InteractsWithIO.php Co-authored-by: Taylor Otwell <[email protected]> Co-authored-by: Dries Vints <[email protected]>
1 parent 0e221d5 commit 07b55bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Commands/Concerns/InteractsWithIO.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ public function shutdownInfo($throwable, $verbosity = null)
226226
*/
227227
public function handleStream($stream, $verbosity = null)
228228
{
229-
match ($stream['type']) {
229+
match ($stream['type'] ?? null) {
230230
'request' => $this->requestInfo($stream, $verbosity),
231231
'throwable' => $this->throwableInfo($stream, $verbosity),
232232
'shutdown' => $this->shutdownInfo($stream, $verbosity),

0 commit comments

Comments
 (0)