This repository has been archived by the owner on Jan 29, 2020. It is now read-only.
Errors when installing package that defines multiple Paths for a PSR-4 Autoload #40
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In the file
https://github.com/zendframework/zend-component-installer/blob/master/src/ComponentInstaller.php#L256
This assumes that each PSR-4 Autoload item mentioned in the composer config is a singular item - so they are defined as such:-
However, the Composer configuration allows that the path for the code be able to be both a string, and an array - e.g.
When defined with an array of paths, and a config provider, this causes the code to error out and the installation to fail.
Whilst this can be fixed in the package (e.g. Mezzle/queuejitsu@17f17a7 ) - this isn't always going to be possible, and should allow for any valid composer configuration to work.