php-resque
php-resque copied to clipboard
`resque speed:test` TypeError
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
andv5.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