Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Symphony deprecation error #876

Closed
JoshMountain opened this issue Mar 1, 2019 · 5 comments
Closed

Symphony deprecation error #876

JoshMountain opened this issue Mar 1, 2019 · 5 comments

Comments

@JoshMountain
Copy link

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.

This started popping up after upgrading to Laravel 5.8 - I can provide more detail if needed, feel free to ping me on the Laravel discord.

@freekmurze
Copy link
Member

Could you provide a stracktrace?

@CBreetzi
Copy link

CBreetzi commented Apr 19, 2019

I have the same error. Here's the stacktrace.

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.
#23 /vendor/symfony/process/Process.php(147): Symfony\Component\Process\Process::__construct
#22 /vendor/spatie/db-dumper/src/Databases/MySql.php(137): Spatie\DbDumper\Databases\MySql::dumpToFile
#21 /vendor/spatie/laravel-backup/src/Tasks/Backup/BackupJob.php(247): Spatie\Backup\Tasks\Backup\BackupJob::Spatie\Backup\Tasks\Backup{closure}
#20 internal: array_map
#19 /vendor/laravel/framework/src/Illuminate/Support/Collection.php(1034): Illuminate\Support\Collection::map
#18 /vendor/spatie/laravel-backup/src/Tasks/Backup/BackupJob.php(250): Spatie\Backup\Tasks\Backup\BackupJob::dumpDatabases
#17 /vendor/spatie/laravel-backup/src/Tasks/Backup/BackupJob.php(167): Spatie\Backup\Tasks\Backup\BackupJob::createBackupManifest
#16 /vendor/spatie/laravel-backup/src/Tasks/Backup/BackupJob.php(143): Spatie\Backup\Tasks\Backup\BackupJob::run
#15 /vendor/spatie/laravel-backup/src/Commands/BackupCommand.php(52): Spatie\Backup\Commands\BackupCommand::handle
#14 internal: call_user_func_array
#13 /vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(29): Illuminate\Container\BoundMethod::Illuminate\Container{closure}
#12 /vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(87): Illuminate\Container\BoundMethod::callBoundMethod
#11 /vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(31): Illuminate\Container\BoundMethod::call
#10 /vendor/laravel/framework/src/Illuminate/Container/Container.php(572): Illuminate\Container\Container::call
#9 /vendor/laravel/framework/src/Illuminate/Console/Command.php(183): Illuminate\Console\Command::execute
#8 /vendor/symfony/console/Command/Command.php(255): Symfony\Component\Console\Command\Command::run
#7 /vendor/laravel/framework/src/Illuminate/Console/Command.php(170): Illuminate\Console\Command::run
#6 /vendor/spatie/laravel-backup/src/Commands/BaseCommand.php(16): Spatie\Backup\Commands\BaseCommand::run
#5 /vendor/symfony/console/Application.php(901): Symfony\Component\Console\Application::doRunCommand
#4 /vendor/symfony/console/Application.php(262): Symfony\Component\Console\Application::doRun
#3 /vendor/symfony/console/Application.php(145): Symfony\Component\Console\Application::run
#2 /vendor/laravel/framework/src/Illuminate/Console/Application.php(89): Illuminate\Console\Application::run
#1 /vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(122): Illuminate\Foundation\Console\Kernel::handle
#0 /artisan(37): null

@freekmurze
Copy link
Member

Which version of the package are you using?

@CBreetzi
Copy link

Thank you for your fast answer!
Taken from composer.json
"spatie/laravel-backup": "^6.0"

@freekmurze
Copy link
Member

Looking at the stracktrace the error happens in our db-dumper package. It's already resolved there. Make sure you're using a recent version of the package. v2.14 is currently the latests version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants