Framework: User Deprecated: Passing a command as string when creating a "Symfony\Component\Process\Process" instance is deprecated

Created on 21 Feb 2019  路  6Comments  路  Source: laravel/framework

  • Laravel Version: 5.7.*
  • PHP Version: 7.3.2
  • Database Driver & Version: MySQL 8

Description:

ErrorException
User Deprecated: Passing a command as string when creating a "Symfony\Component\Process\Process" instance is deprecated since Symfony 4.2, pass it as an array of its arguments instead, or use the "Process::fromShellCommandline()" constructor if you need features provided by the shell.

function_name | Callable Illuminate\Console\Scheduling\ScheduleRunCommand::handle []
-- | --

Steps To Reproduce:

Execute any schedule jobs using the version provided above

bug

Most helpful comment

Just created a PR to apply this fix in 5.7 (#27688).

All 6 comments

Add this line to composer.json for temp fix "symfony/process": "~4.1.0"

Thanks for making us aware. I'll look into this as this indeed seems to affect quite a bit of the console part.

It didn't seem to affect too much. Sent in a PR: https://github.com/laravel/framework/pull/27610

Is this also fixed in Laravel 5.7?

Just created a PR to apply this fix in 5.7 (#27688).

We'll have to wait and see if this can also be fixed in 5.7 but it's fixed for 5.8 already.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  3Comments

YannPl picture YannPl  路  3Comments

lzp819739483 picture lzp819739483  路  3Comments

jackmu95 picture jackmu95  路  3Comments

Fuzzyma picture Fuzzyma  路  3Comments