▼テンプレート
[EC-CUBE] EC-CUBE4.0.2 (4.0.1からのアップデート)
[レンタルサーバ] Xserver
[PHP] PHP7.2.29
[導入プラグインの有無]
・全ページ対応パンくずリスト表示プラグイン for EC-CUBE4
・EC-CUBEアップデートプラグイン
・商品オプションプラグイン
・売上集計プラグイン
・商品並び替えプラグイン
・ゼウス決済プラグイン
・ART(アンバサダーマーケティングツール)導入プラグイン for EC-CUBE 4.0
[カスタマイズの有無] 有り
[現象]
4系の脆弱性対応を行おうと思い、まず下記のコマンドでhttp-foundationのバージョンを確認しようとしたところ、エラーが返されました。
composer show | grep symfony/http-foundation
エラーとしては、以下のようなFlex.phpのparseエラーが表示されている状態です。
PHP Parse error: syntax error, unexpected '?' in /EC-CUBE本体までのパス/vendor/symfony/flex/src/Flex.php on line 118
エラーが出ている箇所には、以下のようなコードが記載されておりました。
$symfonyRequire = getenv('SYMFONY_REQUIRE') ?: ($composer->getPackage()->getExtra()['symfony']['require'] ?? null);
【試したこと】
・composer update symfony/flex --no-plugins --no-scripts →下記のようなWarningなどが表示される。そして、解消もされない。
Deprecation warning: require.ec-cube/BreadcrumbList4 is invalid, it should not contain uppercase characters. Please use ec-cube/breadcrumblist4 instead. Make sure you fix this as Composer 2.0 will error.
Deprecation warning: require.ec-cube/ProductOption is invalid, it should not contain uppercase characters. Please use ec-cube/productoption instead. Make sure you fix this as Composer 2.0 will error.
Deprecation warning: require.ec-cube/SalesReport4 is invalid, it should not contain uppercase characters. Please use ec-cube/salesreport4 instead. Make sure you fix this as Composer 2.0 will error.
Deprecation warning: require.ec-cube/SortProduct is invalid, it should not contain uppercase characters. Please use ec-cube/sortproduct instead. Make sure you fix this as Composer 2.0 will error.
Deprecation warning: require.ec-cube/ZeusPayment4 is invalid, it should not contain uppercase characters. Please use ec-cube/zeuspayment4 instead. Make sure you fix this as Composer 2.0 will error.
Deprecation warning: require-dev.mikey179/vfsStream is invalid, it should not contain uppercase characters. Please use mikey179/vfsstream instead. Make sure you fix this as Composer 2.0 will error.
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Package easycorp/easy-log-handler is abandoned, you should avoid using it. No replacement was suggested.
Package facebook/webdriver is abandoned, you should avoid using it. Use php-webdriver/webdriver instead.
Package phpunit/phpunit-mock-objects is abandoned, you should avoid using it. No replacement was suggested.
Package sensio/generator-bundle is abandoned, you should avoid using it. Use symfony/maker-bundle instead.
Package setasign/fpdi-tcpdf is abandoned, you should avoid using it. No replacement was suggested.
Package symfony/lts is abandoned, you should avoid using it. Use symfony/flex instead.
Package zendframework/zend-code is abandoned, you should avoid using it. Use laminas/laminas-code instead.
Package zendframework/zend-eventmanager is abandoned, you should avoid using it. Use laminas/laminas-eventmanager instead.
Generating optimized autoload files
Warning: Ambiguous class resolution, "Eccube\Entity\CartItem" was found in both "$baseDir . '/app/proxy/entity/src/Eccube/Entity/CartItem.php" and "/ECCUBE本体までのパス/src/Eccube/Entity/CartItem.php", the first will be used.
Warning: Ambiguous class resolution, "Eccube\Entity\Customer" was found in both "$baseDir . '/app/proxy/entity/src/Eccube/Entity/Customer.php" and "/ECCUBE本体までのパス/src/Eccube/Entity/Customer.php", the first will be used.
Warning: Ambiguous class resolution, "Eccube\Entity\CustomerAddress" was found in both "$baseDir . '/app/proxy/entity/src/Eccube/Entity/CustomerAddress.php" and "/ECCUBE本体までのパス/src/Eccube/Entity/CustomerAddress.php", the first will be used.
Warning: Ambiguous class resolution, "Eccube\Entity\Member" was found in both "$baseDir . '/app/proxy/entity/src/Eccube/Entity/Member.php" and "/ECCUBE本体までのパス/src/Eccube/Entity/Member.php", the first will be used.
Warning: Ambiguous class resolution, "Eccube\Entity\OrderItem" was found in both "$baseDir . '/app/proxy/entity/src/Eccube/Entity/OrderItem.php" and "/ECCUBE本体までのパス/src/Eccube/Entity/OrderItem.php", the first will be used.
Warning: Ambiguous class resolution, "Eccube\Entity\Shipping" was found in both "$baseDir . '/app/proxy/entity/src/Eccube/Entity/Shipping.php" and "/ECCUBE本体までのパス/src/Eccube/Entity/Shipping.php", the first will be used.
Warning: Ambiguous class resolution, "Eccube\Entity\Cart" was found in both "$baseDir . '/app/proxy/entity/src/Eccube/Entity/Cart.php" and "/ECCUBE本体までのパス/src/Eccube/Entity/Cart.php", the first will be used.
Warning: Ambiguous class resolution, "Eccube\Entity\Order" was found in both "$baseDir . '/app/proxy/entity/src/Eccube/Entity/Order.php" and "/ECCUBE本体までのパス/src/Eccube/Entity/Order.php", the first will be used.
Warning: Ambiguous class resolution, "Eccube\Entity\Product" was found in both "$baseDir . '/app/proxy/entity/src/Eccube/Entity/Product.php" and "/ECCUBE本体までのパス/src/Eccube/Entity/Product.php", the first will be used.
/vendor内のファイルであるため、直接修正するのは望ましくないような気もして、どう対処すべきか判断しかねている状態です。
こちらのエラーの解消法について、ご存知の方がおられましたら、ご教授いただけるとありがたいです。
何卒、よろしくお願いいたします。