Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace deprecated ${var} string interpolation with {$var} interpolation #228

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Adapter/FastCGI.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function __construct($host = null, $chroot = null)
if (preg_match($IPv6, $host) === 1) {
// IPv6 addresses need to be surrounded by brackets
// see: https://www.php.net/manual/en/function.stream-socket-client.php#refsect1-function.stream-socket-client-notes
$host = "[${host}]";
$host = "[{$host}]";
}

$this->connection = new NetworkSocket(
Expand Down
2 changes: 1 addition & 1 deletion src/Adapter/Http/FileGetContents.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function fetch($filename)
'errors' => [
[
'no' => 0,
'str' => "file_get_contents() call failed with url: ${url}",
'str' => "file_get_contents() call failed with url: {$url}",
],
],
]);
Expand Down
2 changes: 1 addition & 1 deletion src/Command/AbstractOpcacheCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ protected function ensureSuccessfulOpcacheCall($info)

if ($info['restart_pending'] ?? false) {
$cacheStatus = $info['cache_full'] ? 'Also, you cache is full.' : '';
throw new \RuntimeException("OPCache is restart, as such files can't be invalidated. Try again later. ${cacheStatus}");
throw new \RuntimeException("OPCache is restart, as such files can't be invalidated. Try again later. {$cacheStatus}");
}

$file_cache_only = $info['file_cache_only'] ?? false;
Expand Down
2 changes: 1 addition & 1 deletion src/Command/OpcacheResetFileCacheCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int

if (!$input->getOption('force')) {
$question = new ConfirmationQuestion(
"Are you sure you want to delete the contents of <comment>${fileCache}</comment>? [no] ",
"Are you sure you want to delete the contents of <comment>{$fileCache}</comment>? [no] ",
false,
'/^y/i'
);
Expand Down