codeigniter4 / CodeIgniter4

Open Source PHP Framework (originally from EllisLab)
https://codeigniter.com/
MIT License
5.4k stars 1.9k forks source link

Bug: Call to undefined method Composer\InstalledVersions::getAllRawData() in Autoloader.php #7106

Closed kenjis closed 1 year ago

kenjis commented 1 year ago

PHP Fatal error: Uncaught Error: Call to undefined method Composer\InstalledVersions::getAllRawData() in .../vendor/codeigniter4/framework/system/Autoloader/Autoloader.php:376

Ref #7101 See https://forum.codeigniter.com/showthread.php?tid=86123

How to Reproduce:

$ composer self-update 2.0.13
$ composer create-project codeigniter4/appstarter ci4
$ cd ci4
$ php spark serve
kenjis commented 1 year ago

This is not related to v4.3.0. getAllRawData() was introduced in Composer 2.0.14.

https://getcomposer.org/changelog/2.0.14 https://github.com/composer/composer/pull/9816/commits/f5e6cc89cd8d45c99cff77ee80d0f324ada45686

datamweb commented 1 year ago

Reproduce Disaster in every sense.

kenjis commented 1 year ago

This is related to v4.3.0. InstalledVersions::getAllRawData() has been used since https://github.com/codeigniter4/CodeIgniter4/commit/8c99deddd4fd53e89b6f4a574b16cd5a0433be18#diff-907319ab25c4e05e576a1754147d0b980076b79b4b48f92d99314e7366c0f816R373