neilcarpenter
3 years ago
3757
27
General

Composer generating autoload files fails

Posted 3 years ago by neilcarpenter

I've pulled in laravel using new laravel app

Then i've tried pulling in laracasts/flash using composer require laracasts/flash

Things seem to be going ok untill it gets to "Generating autoload files" I'm then getting an error..

Installation failed, reverting ./composer.json to its original content.
[ErrorException]
Argument 1 passed to Composer\Autoload\ClassLoader::addClassMap() must be of the type array, integer given, called in phar:///usr/local/bin/composer/src/Composer/Autoload/AutoloadGenerator.php on line 723 and defined

I have no idea why this has started happening, it happens whenever composer gers to generating autoload files....

Can anyone help me sort this out please?

Please sign in or create an account to participate in this conversation.