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
- Make Deployer 7.0.2 work with PHP 8.2 Closes #3399 — committed to Konafets/deployer by Konafets 2 years ago
- Make Deployer work with PHP 8.2 (#3422) * Make Deployer 7.0.2 work with PHP 8.2 Closes #3399 * Pin symfony/console to minimum version 5.4.9 * Update lock file * Add a job to test with PHP... — committed to wilfriedwolf/deployer by franmomu a year ago
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 version5.4.9
. So please check the deployer build to include the current 5.x version ofsymfony/console
.Workaround until this is fixed: Adjust PHP’s error_reporting to exclude
E_DEPRECATED
: