-
Notifications
You must be signed in to change notification settings - Fork 73
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
False positive on Laravel\Illuminate packages #393
Comments
I don't think there's a clean way around What I'm wondering about though is why |
When framework package installed, those classes presented in
|
I'd say that you should try and investigate why they cannot be located by this tool then 🤔 Somewhere in here, perhaps: https://github.com/maglnet/ComposerRequireChecker/tree/786978774fb5851e7593bbfc934892c2072d9f7d/src/ComposerRequireChecker/DefinedSymbolsLocator |
|
I have this
composer.json
requires:I explicitly declared the dependency on
illuminate/*
packages, because use classes from this packages in my code.Command result:
All this classes provided by declared
illuminate/*
packages.If I delete
orchestra/testbench
package fromrequire-dev
section - i have correct result from composer-require-checker (There were no unknown symbols found.
)This happens because package
orchestra/testbench
requirelaravel/framework
that provides allilluminate/*
packages (https://github.com/laravel/framework/blob/9.x/composer.json#L57).And if I install all dependencies of my package (with flag
--no-dev
or without it) - composer install packagelaravel/framework
instead ofilluminate/*
packages, but composer-require-checker as it appears not usereplace
section of requirement packagesIs there correct way to fix this behaviour?
The text was updated successfully, but these errors were encountered: