[root@www shoplists]# composer update
を実行すると
Deprecation Notice: The Composer\Package\LinkConstraint\MultiConstraint class is deprecated, use Composer\Semver\Constraint\MultiConstraint instead. in phar:///var/www/html/composer.phar/src/Composer/Package/LinkConstraint/MultiConstraint.php:17 Deprecation Notice: The Composer\Package\LinkConstraint\LinkConstraintInterface interface is deprecated, use Composer\Semver\Constraint\ConstraintInterface instead. in phar:///var/www/html/composer.phar/src/Composer/Package/LinkConstraint/LinkConstraintInterface.php:17 Loading composer repositories with package information Updating dependencies (including require-dev) [ErrorException] Illegal offset type in isset or empty update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] []...
のようなエラーが表示されて更新できない事態になった。
composer自身のアップデートを確認したけど問題なし。
[root@www shoplists]# composer selfupdate You are already using composer version 3933a7f404cfa197c5457f49b0665eae40ddedd9.
プラグインなしでやってみたけど、変わらず。
[root@www shoplists]# composer global update --no-plugins Changed current directory to /root/.composer Loading composer repositories with package information Updating dependencies (including require-dev) Nothing to install or update Generating autoload files
プラグインを更新したら、「Deprecation Notice」の表示も消えて、かつ、無事に更新できるようになりました。
[root@www shoplists]# composer global require fxp/composer-asset-plugin:"^1.1.0" --no-plugins Changed current directory to /root/.composer ./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev) - Removing fxp/composer-asset-plugin (v1.0.3) - Installing fxp/composer-asset-plugin (v1.1.2) Downloading: 100% Writing lock file Generating autoload files