deployer: Symphony Input Interface Error

  • Deployer version: ? unkown (latest, installed today)
  • Deployment OS: Mac OS BigSur

After installing the Deployer i tried to run the init command (or any other for that matter) and i get the following error:

Fatal error: Declaration of Symfony\Component\Console\Input\Input::getArgument($name) must be compatible with Symfony\Component\Console\Input\InputInterface::getArgument(string $name) in phar:///usr/local/bin/dep/vendor/symfony/console/Input/Input.php on line 28

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 18 (14 by maintainers)

Most upvoted comments

oh lol i didn’t know that. but i fixed it in the pull request above. Maybe take a look at it.

I’ve changed it from compressFiles() to compressing the files separately after they were added to the archive. This fixed if for me. A bit slower i believe, but almost not noticeable here.

// bin/build
50    $phar->addFile($fileInfo->getRealPath(), $file);

52    $phar[$file]->compress(Phar::GZ);
    
54    if (!$phar[$file]->isCompressed()) {
55        echo "Could not compress File: {$file}\n";
56    }

@rparrett you’re using php 7.1 which is not compatible with deployer 6.8 see composer.json 6.8.. Seems like not documented BC break. And yes PHP 7.1 has reached its EOL