Skip to content

Commit 93d76e0

Browse files
authored
Fix Symfony Console PHP 8.2 deprecation warnings (#258)
1 parent 6f3874f commit 93d76e0

File tree

3 files changed

+28
-1
lines changed

3 files changed

+28
-1
lines changed

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@
6969
},
7070
"hoa/stream:1.17.02.21": {
7171
"PHP 8 fixes": "patches/hoa/stream/0001-Fix-PHP-8-compatibility.patch"
72+
},
73+
"symfony/console:5.4.1": {
74+
"PHP 8.2 fixes": "patches/symfony/console/0001-Fix-PHP-8.2-compatibility.patch"
7275
}
7376
}
7477
}

composer.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
From: Michele Locati <[email protected]>
2+
Date: Fri, 10 Jun 2022 17:06:32 +0200
3+
Subject: [PATCH] Fix PHP 8.2 deprecation warning about strings interpolation
4+
5+
--- a/Command/DumpCompletionCommand.php
6+
+++ b/Command/DumpCompletionCommand.php
7+
@@ -53,7 +53,7 @@ to use shell autocompletion (currently only bash completion is supported).
8+
9+
Dump the script to a global completion file and restart your shell:
10+
11+
- <info>%command.full_name% bash | sudo tee /etc/bash_completion.d/${commandName}</>
12+
+ <info>%command.full_name% bash | sudo tee /etc/bash_completion.d/{$commandName}</>
13+
14+
Or dump the script to a local file and source it:
15+
16+
@@ -70,7 +70,7 @@ Or dump the script to a local file and source it:
17+
18+
Add this add the end of your shell configuration file (e.g. <info>"~/.bashrc"</>):
19+
20+
- <info>eval "$(${fullCommand} completion bash)"</>
21+
+ <info>eval "$({$fullCommand} completion bash)"</>
22+
EOH
23+
)
24+
->addArgument('shell', InputArgument::OPTIONAL, 'The shell type (e.g. "bash"), the value of the "$SHELL" env var will be used if this is not given')

0 commit comments

Comments
 (0)