Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minor #20683 [Console] Remove invalid ProcessHelper specified usage (…
…viviengaetan) This PR was merged into the 6.4 branch. Discussion ---------- [Console] Remove invalid ProcessHelper specified usage Since Symfony 6.0, the ProcessHelper have the `$cmd` argument from its two methods `run()` and `mustRun()` typed as `array|Process` [source](https://github.com/symfony/symfony/blob/6.0/src/Symfony/Component/Console/Helper/ProcessHelper.php). When you try to run as described in the documentation with a string, PHP will throw a TypeError ``` Fatal error: Uncaught TypeError: Symfony\Component\Console\Helper\ProcessHelper::run(): Argument #2 ($cmd) must be of type Symfony\Component\Process\Process|array, string given, called in /app/src/FooCommand.php on line 22 and defined in /app/vendor/symfony/console/Helper/ProcessHelper.php:35 ``` Documentation is invalid since 6.0 up to the latest version. Commits ------- 4f64107 [Console] Remove invalid ProcessHelper specified usage
- Loading branch information