Home » Php » php – Composer update : Trying to access array offset on value of type null

php – Composer update : Trying to access array offset on value of type null

Posted by: admin February 25, 2020 Leave a comment

Questions:

I updated my server with PHP 7.4.2 and now I am getting this :

~/public_html/infusionsoft$ php composer.phar update


  [ErrorException]                                    
  Trying to access array offset on value of type null  

I had to revert back to 7.3.14 and it works. But is composer not PHP 7.4 ready ?

How to&Answers:

This is a composer issue and has been fixed in this release: https://github.com/composer/composer/pull/8296

In order to fix this issue please update your composer.