Closed refsz closed 6 days ago
I have the following Code in my project:
$process = new Process($command); if (\in_array('pandoc', $command, true)) { $process->setInput('<p></p>'); }
The rule StringToArrayArgumentProcessRector changes the code for setInput to $process->setInput(['<p></p>']);
$process->setInput(['<p></p>']);
Then PHPStan complains because setInput does not support arrays.
Should setInput be included in EXCLUDED_PROCESS_METHOD_CALLS?
Could you provide a patch? the steps:
@see
thank you.
I have the following Code in my project:
$process = new Process($command); if (\in_array('pandoc', $command, true)) { $process->setInput('<p></p>'); }
The rule StringToArrayArgumentProcessRector changes the code for setInput to
$process->setInput(['<p></p>']);
Then PHPStan complains because setInput does not support arrays.
Should setInput be included in EXCLUDED_PROCESS_METHOD_CALLS?