extension-command
extension-command copied to clipboard
Notice: Trying to access array offset on value of type null in Plugin_Command.php on line 662
Bug Report
- [x] Yes, I reviewed the contribution guidelines.
- [x] Yes, more specifically, I reviewed the guidelines on how to write clear bug reports.
When I run wp plugin update --all on my localhost on Mac, I see the following notices:
Notice: Trying to access array offset on value of type null in phar:///usr/local/Cellar/wp-cli/2.4.0/bin/wp/vendor/wp-cli/extension-command/src/Plugin_Command.php on line 662
Notice: Trying to access array offset on value of type null in phar:///usr/local/Cellar/wp-cli/2.4.0/bin/wp/vendor/wp-cli/extension-command/src/Plugin_Command.php on line 663
There was only 1 update for Gutenberg at that time. Despite the notices, the update process still work well.
Environment
OS: Darwin 18.2.0 Darwin Kernel Version 18.2.0: Mon Nov 12 20:24:46 PST 2018; root:xnu-4903.231.4~2/RELEASE_X86_64 x86_64
Shell: /bin/bash
PHP binary: /usr/local/Cellar/php/7.4.3/bin/php
PHP version: 7.4.3
php.ini used: /usr/local/etc/php/7.4/php.ini
WP-CLI root dir: phar://wp-cli.phar/vendor/wp-cli/wp-cli
WP-CLI vendor dir: phar://wp-cli.phar/vendor
WP_CLI phar path: /Library/WebServer/Documents/themedemos/wp-content/themes
WP-CLI packages dir:
WP-CLI global config:
WP-CLI project config:
WP-CLI version: 2.4.0
I installed wp-cli via brew on Mac, here is the output of brew list:
apr freetds jemalloc libsodium msgpack php utf8proc
apr-util freetype jpeg libssh2 nghttp2 python webp
argon2 gdbm libev libtiff node readline wp-cli
aspell gettext libevent libtool oniguruma rtmpdump xz
autoconf glib libffi libzip openldap sqlite
brotli gmp libidn lz4 openssl subversion
c-ares groonga libmetalink mariadb [email protected] tidy-html5
composer icu4c libpng mecab pcre tig
curl-openssl jansson libpq mecab-ipadic perl unixodbc
I use built-in PHP + Apache on Mac.