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

resque speed:test TypeError #105

Open
PAXANDDOS opened this issue Feb 13, 2023 · 0 comments · Fixed by #111
Open

resque speed:test TypeError #105

PAXANDDOS opened this issue Feb 13, 2023 · 0 comments · Fixed by #111

Comments

@PAXANDDOS
Copy link
Contributor

PAXANDDOS commented Feb 13, 2023

When running vendor/bin/resque speed:test

Fatal error: Uncaught TypeError: Symfony\Component\Process\Process::__construct(): Argument #1 ($command) must be of type array, string given, called in /var/www/recon/vendor/mjphaynes/php-resque/src/Resque/Commands/SpeedTest.php on line 52 and defined in /var/www/recon/vendor/symfony/process/Process.php on line 143

TypeError: Symfony\Component\Process\Process::__construct(): Argument #1 ($command) must be of type array, string given, called in /var/www/recon/vendor/mjphaynes/php-resque/src/Resque/Commands/SpeedTest.php on line 52 in /var/www/recon/vendor/symfony/process/Process.php on line 143

Using dockerized:

  • PHP 8.2.2
  • php-resque 3.1.1
  • All needed extensions
  • Tested on Symfony Process v6.2.5 and v5.4.19, the error is the same

Passing a command as a string when creating a Process instance is deprecated since Symfony 4.2 (from symfony/process v4.4 branch)

I guess that's code from even older versions of a component? Maybe consider dropping support for older components? For example, Symfony LTS version is 5.4.20

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

Successfully merging a pull request may close this issue.

1 participant