Skip to content

Commit f79fd16

Browse files
Make sure trim is called on a string
Fixes issue #290
1 parent b31820e commit f79fd16

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Console/IO/DefaultIO.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public function getArgument(string $name, string $default = ''): string
109109
public function getStandardInput(): array
110110
{
111111
if (empty($this->stdIn)) {
112-
$this->stdIn = explode(PHP_EOL, trim($this->input->getOption('input'), '"'));
112+
$this->stdIn = explode(PHP_EOL, trim((string)$this->input->getOption('input'), '"'));
113113
}
114114
return $this->stdIn;
115115
}

0 commit comments

Comments
 (0)