Skip to content

Commit

Permalink
Do not convert to array Process->setInput()
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcel Reuss authored and samsonasik committed Aug 17, 2024
1 parent d11e7da commit f7f5b47
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ function doNotConvertToArrayCallSetWorkingDirectory()
$process->setWorkingDirectory('/some/other/path');
$process->addOutput('Test output');
$process->addErrorOutput('Test output');
$process->setInput('Test input');
}

?>
Expand All @@ -26,6 +27,7 @@ function doNotConvertToArrayCallSetWorkingDirectory()
$process->setWorkingDirectory('/some/other/path');
$process->addOutput('Test output');
$process->addErrorOutput('Test output');
$process->setInput('Test input');
}

?>
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ final class StringToArrayArgumentProcessRector extends AbstractRector
/**
* @var string[]
*/
private const EXCLUDED_PROCESS_METHOD_CALLS = ['setWorkingDirectory', 'addOutput', 'addErrorOutput'];
private const EXCLUDED_PROCESS_METHOD_CALLS = ['setWorkingDirectory', 'addOutput', 'addErrorOutput', 'setInput'];

public function __construct(
private readonly NodeTransformer $nodeTransformer
Expand Down

0 comments on commit f7f5b47

Please sign in to comment.