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

PHP8.2以降での非推奨コードの対応 #6246

Open
Mi-Hiroki opened this issue Jul 5, 2024 · 1 comment
Open

PHP8.2以降での非推奨コードの対応 #6246

Mi-Hiroki opened this issue Jul 5, 2024 · 1 comment
Labels
Milestone

Comments

@Mi-Hiroki
Copy link
Contributor

Mi-Hiroki commented Jul 5, 2024

概要(Overview)

バッチ(Command)プログラム実行時に、PHP8.2以降の非推奨コードの警告が出る

PHP8.2以降、下記のコード記述が非推奨になっている。
例:echo "This is a ${xxxx}";
修正例:echo "This is a {$xxxx}";

https://www.php.net/manual/ja/migration82.deprecated.php

再現手順(Procedure)

コマンド実行時の警告文

PHP Deprecated:  Using ${var} in strings is deprecated, use {$var} instead in /var/www/eccube-4.3.0/src/Eccube/Service/PluginService.php on line 473

PHP Deprecated:  Using ${var} in strings is deprecated, use {$var} instead in /var/www/eccube-4.3.0/src/Eccube/Service/PluginService.php on line 478

PHP Deprecated:  Using ${var} in strings is deprecated, use {$var} instead in /var/www/eccube-4.3.0/src/Eccube/Service/PluginService.php on line 482

PHP Deprecated:  Using ${var} in strings is deprecated, use {$var} instead in /var/www/eccube-4.3.0/src/Eccube/Service/PluginService.php on line 486

PHP Deprecated:  Using ${var} in strings is deprecated, use {$var} instead in /var/www/eccube-4.3.0/src/Eccube/Service/PluginService.php on line 681

PHP Deprecated:  Using ${var} in strings is deprecated, use {$var} instead in /var/www/eccube-4.3.0/src/Eccube/Service/PluginContext.php on line 74

PHP Deprecated:  Using ${var} in strings is deprecated, use {$var} instead in /var/www/eccube-4.3.0/src/Eccube/Service/PluginContext.php on line 78

環境(Environment)

EC-CUBE: 4.3.0-beta
PHP: 8.3.6
DB: PostgreSQL 15.6

@Mi-Hiroki Mi-Hiroki added the bug label Jul 5, 2024
@dotani1111
Copy link
Contributor

@Mi-Hiroki
Issueありがとうございます。
こちら確認済ですので、順次対応したいと思います。

@dotani1111 dotani1111 added this to the 4.3.x milestone Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants