8000 [Process] PhpProcess constructor arguments · Issue #35637 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
[Process] PhpProcess constructor arguments #35637
Closed
@Guikingone

Description

@Guikingone

Symfony version(s) affected: master

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.

Possible Solution

#35641

Additional context
As far as I can see, it seems that the error occurs here:

$process = new static([], $cwd, $env, $input, $timeout);
$process->commandline = $command;

return $process;

PhpProcess receive an array as the first argument 🤔

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0