alekitto / class-finder

Utility classes to help discover other classes/namespaces
https://alekitto.github.io/class-finder/
MIT License
27 stars 5 forks source link

Fix ComposerFinder::getValidLoader() #2

Closed massimilianobraglia closed 4 years ago

massimilianobraglia commented 4 years ago

If the condition specified in https://github.com/alekitto/class-finder/blob/master/lib/Finder/ComposerFinder.php#L54 is verified, the next if statement errors because the $autoload_function is no more an array.