Skip to content

Commit

Permalink
Apply suggestion from @nicolas-grekas
Browse files Browse the repository at this point in the history
  • Loading branch information
Firehed committed Jan 3, 2019
1 parent 9f5c8d3 commit b26afb4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Symfony/Component/Console/Tester/TesterTrait.php
Expand Up @@ -162,7 +162,9 @@ private static function createStream(array $inputs)
{
$stream = fopen('php://memory', 'r+', false);

fwrite($stream, implode(PHP_EOL, $inputs).PHP_EOL);
foreach ($inputs as $input) {
fwrite($stream, $input.PHP_EOL);
}
rewind($stream);

return $stream;
Expand Down

0 comments on commit b26afb4

Please sign in to comment.