deployer: deployer 7.0.2 does not run with php 8.2

  • Deployer version: 7.0.2

  • Deployment OS: macOS

    Please, provide a minimal reproducible example of deploy.php
    

How to reproduce

  • Install php8.2
  • Install deployer 7.0.2
  • Run dep init --no-interaction
==> /opt/homebrew/Cellar/deployer/7.0.2/bin/dep init --no-interaction
Last 15 lines from /Users/rui/Library/Logs/Homebrew/deployer/test.01.dep:
2022-12-08 11:07:16 -0500

/opt/homebrew/Cellar/deployer/7.0.2/bin/dep
init
--no-interaction

 ErrorException  in DumpCompletionCommand.php on line 48:

  Using ${var} in strings is deprecated, use {$var} instead

relates to https://github.com/Homebrew/homebrew-core/pull/117647

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 7
  • Comments: 16 (9 by maintainers)

Commits related to this issue

Most upvoted comments

There was a PR (closed and not merged) to bump the symfony/console. https://github.com/deployphp/deployer/pull/3280

It seems, this is caused by an old version of symfony/console. The syntax is fixed in version 5.4.9. So please check the deployer build to include the current 5.x version of symfony/console.

Workaround until this is fixed: Adjust PHP’s error_reporting to exclude E_DEPRECATED:

error_reporting = E_ALL ^ E_DEPRECATED