Skip to content

resque speed:test TypeError #105

@PAXANDDOS

Description

@PAXANDDOS

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions