You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Using the PhpProcess::fromShellCommandline() method and passing a simple string echo Symfony, it seems that PhpProcess constructor requires a string, by default, the fromShellCommandline implementation depends on the Process one which requires an array as the first argument.
How to reproduce
Just try to instantiante PhpProcess::fromShellCommandline() with a string echo Symfony.
… used (Guikingone)
This PR was merged into the 4.4 branch.
Discussion
----------
[Process] throw when PhpProcess::fromShellCommandLine() is used
| Q | A
| ------------- | ---
| Branch? | 4.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | Fix#35637
| License | MIT
| Doc PR | None
Close#35638
Final PR (rebased and tests added)
Commits
-------
7f6d71c refactor(Process): fromShellCommandLine
Uh oh!
There was an error while loading. Please reload this page.
Symfony version(s) affected: master
Description
Using the
PhpProcess::fromShellCommandline()
method and passing a simple stringecho Symfony
, it seems that PhpProcess constructor requires a string, by default, thefromShellCommandline
implementation depends on theProcess
one which requires an array as the first argument.How to reproduce
Just try to instantiante
PhpProcess::fromShellCommandline()
with a stringecho Symfony
.Possible Solution
#35641
Additional context
As far as I can see, it seems that the error occurs here:
PhpProcess
receive an array as the first argument 🤔The text was updated successfully, but these errors were encountered: