Skip to content
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

Fix a bug with a disjunctive license #192

Merged
merged 11 commits into from
Sep 20, 2023

Conversation

ivastly
Copy link
Contributor

@ivastly ivastly commented Sep 20, 2023

This PR fixes the behavior with a disjunctive license (e.g. "MIT, WTFPL, GPL-3.0-only").

Disjunctive license means that the user can choose any license from the list. Therefore, composer-license-checker should allow the package if at least one license is allowed. Before, it was checking all licenses from the list and demanding all of them to be allowed.

@ben-challis ben-challis changed the title [ZEND-2908] Fix a bug with a disjunctive license Fix a bug with a disjunctive license Sep 20, 2023
Copy link
Member

@ben-challis ben-challis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, tiny feedback re: global namespace import and clarifying error message when a disjunctive licensing is hit.

src/Licenses.php Outdated Show resolved Hide resolved
src/Output/HumanReadableDisplay.php Outdated Show resolved Hide resolved
@ivastly ivastly removed the request for review from marmichalski September 20, 2023 09:05
@ben-challis ben-challis merged commit fdbb6ad into main Sep 20, 2023
12 checks passed
@ben-challis ben-challis deleted the ticket/ZEND-2908-fix-bug-with-disjunctive-license branch September 20, 2023 12:02
@ben-challis
Copy link
Member

Thanks @ivastly!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants