Skip to content

Commit 425a53f

Browse files
committed
fix: argv should always return array
1 parent 8e6c8ef commit 425a53f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Uri.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ public function getUri(): string
296296
*/
297297
public function getArgv(): array
298298
{
299-
return $this->argv;
299+
return $this->argv === null ? [] : $this->argv;
300300
}
301301

302302
/**

0 commit comments

Comments
 (0)