drupal 8.9.7

php : 

drupal@wpdemo:/var/www/html$ php -v
PHP 7.4.3 (cli) (built: May 26 2020 12:24:22) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.3, Copyright (c), by Zend Technologies
 

i was trying to upgrade drupal from 8.9.7 to 8.9.8 so i ran 

composer outdated "drupal/*"

 which gave me the following error 

drupal@wpdemo:/var/www/html$  composer outdated "drupal/*"

In ArrayInput.php line 135:

  Trying to access array offset on value of type int


show [--all] [-i|--installed] [-p|--platform] [-a|--available] [-s|--self] [-N|--name-only] [-P|--path] [-t|--tree] [-l|--latest] [-o|--outdated] [-m|--minor-only] [-D|--direct] [--strict] [-f|--format FORMAT] [--] [<package>] [<version>]

i have already checked ( https://www.drupal.org/docs/system-requirements/php-requirements ) and 8.9 supports php 7.4 

any one have an idea how i should proceed ? 

Comments

mmjvb’s picture

Only composer diagnose tells you which version of php is used. That might not be the version reported by php -v.

Also, it is composer that complains, which version are you using? Another reason to use diagnose as it reports the version of compoaser as well.

Suggest to update composer if not on latest.

winkflo’s picture

same here. i am on drupal 8.8.x, PHP 7.4.x, composer 1.8.x

the solution for me, was to update composer to version 1.10.17

composer self-update 1.10.17
genfoch01’s picture

i'll give that a shot and see if it works. Thanks for the suggestion 

genfoch01’s picture

I uninstalled composer and reinstalled and that got me the new version. odd that i an running on ubuntu and did apt-get update apt-get upgrade but that did not update composer.  the uninstall and reinstall did. 

oscarwerther’s picture

yes the self-update did the trick for me