Skip to content

Commit

Permalink
Merge pull request #229 from rodrigowbazevedo/v8.5.1
Browse files Browse the repository at this point in the history
Fix deprecated string interpolation in v8
  • Loading branch information
gordalina authored Apr 11, 2023
2 parents d5dc286 + 2e7b7e1 commit 7245206
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
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

0 comments on commit 7245206

Please sign in to comment.