Skip to content

Commit

Permalink
PHP 8.2: fix "Using ${var} in strings is deprecated, use {$var} instead"
Browse files Browse the repository at this point in the history
PHP 8.2 deprecated using ${var} in strings
(https://kinsta.com/blog/php-8-2/#deprecate--string-interpolation). {$var}
should be used instead. This commit fixes the single occurrence of ${var}
in this package located in src/MakeJsonCommand.php.
  • Loading branch information
rodrigoprimo committed Nov 29, 2022
1 parent 57bfb1e commit bca3ba7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MakeJsonCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ protected function build_json_files( $mapping, $base_file_name, $destination ) {
/** @var Translations $translations */

$hash = md5( $file );
$destination_file = "${destination}/{$base_file_name}-{$hash}.json";
$destination_file = "{$destination}/{$base_file_name}-{$hash}.json";

$success = JedGenerator::toFile(
$translations,
Expand Down

0 comments on commit bca3ba7

Please sign in to comment.