-
-
Notifications
You must be signed in to change notification settings - Fork 101
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
Disable requirement check for specific extension? #1248
Comments
There isn't really a way to do so unfortunately. The requirement can either not be shipped or disabled at runtime via the environment variable (
Doesn't that mean that A workaround maybe though would be to add a |
Thanks for the fast response! I'm going to take a closer look at this tomorrow.
Unfortunately, this requirement is made in a package that one of the packages I depend on depends on. Users of the original package probably need the requirement, but since I don't use all the features from the package, I personally don't need it. I hope that makes sense. Dependencies with dependencies gets messy.
That could work, I'll try it out and let you know, thanks! |
Hey! I've looked through the issues and skimmed through the source and searched the docs and haven't found a mention of this, but is there any way to disable/suppress the requirement check for a specific extension?
For context to my actual use case (hydephp/cli#5), a downstream dependency in my project requires the
fileinfo
extension, due to this, the generated Phar also requires that extension. But my code actually works without the extension as I'm not using any of the features that requires the extension. Is there a way I can disable this whilst keeping the other requirement checks that are actually applicable?The text was updated successfully, but these errors were encountered: