bug:インストール時にPHP8.2でwarningが出る
- Dominant language
- PHP
- Stars
- 788
- Forks
- 719
- Avg merge
- 4d 4h
- Merged PRs (30d)
- 39
Description
### 概要(Overview)
PHP8.1と8.2でEC-cubeをインストールする際に、warningが大量に出ます。
以下ログ抜粋
```
Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /ec-cube/vendor/skorp/detect-incompatible-samesite-useragents/src/SameSite.php on line 62
...
Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /ec-cube/src/Eccube/Service/PluginContext.php on line 74
...
```
原因この辺りかと思います。
https://www.php.net/manual/ja/migration81.deprecated.php
https://www.php.net/manual/ja/migration82.deprecated.php
8.1.19でも検証した所、warningが出たため記載
### 再現手順(Procedure)
```
$ git pull <リポジトリ>
$ composer install
$ bin/console e:i
```
→warningが大量
### 環境(Environment)
EC-Cube: 4.2
PHP: 8.1.19, 8.2.6
Contributor guide
Assessment
This issue has not been assessed yet.