-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Strauss Fail when a namespace is mapped to an array of paths #76
Comments
Thank you for the workaround. // Check each autoloader.
foreach ($composer->getPackage()->getAutoload() as $autoload) {
// To see if one of its paths.
foreach ($autoload as $path) {
// Matches the target directory.
if (trim($path, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR === $this->getTargetDirectory()) {
$this->classmapOutput = false;
break 2;
}
}
} Furthermore, the test case doesn't seem to include PSR-0/PSR-4 config at all. EDIT: using the workaround still result in the same error. |
Can you give me an actual broken composer.json. I've tried writing tests with the example you gave me and they're passing. I can see that it should fail in the code you highlighted, but I want a test! |
Sure, here composer.json |
This should be fixed in master now. See: b32fe49 |
Great, It works flawlessly now. |
when multiple directories are add for the same namespace as specified in Composer documentaion:
it results in the error:
it seems like the problem is strauss always expect the configuration to be a string and try to trim() it.
The text was updated successfully, but these errors were encountered: