-
-
Notifications
You must be signed in to change notification settings - Fork 67
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
Function libraries_get_path() not found #88
Comments
Yeah, there are problems with analyzing modules which use other modules. Drupal Commerce provides a Panelizer plugin and that freaks out. There would have to be tricks done in phpstan-drupal to support this. I'm going to leave this open for others to find. I can't think of a straight forward fix beyond "ensure dev dependencies are installed" |
Maybe there's a way to provide "exclude" config? |
In my opinion, should have all of your development dependencies when running static analysis. What if you had code within |
I'm happy to see such "weak dependencies" are caught by analysis! if module require external library it must declare it, otoh sadly there's no strong opinion in https://www.drupal.org/project/drupal/issues/2873160 |
I'm going to close this. I see this as "works as designed" because it is forcing the analysis of your code in its entirety. |
I'm using CKEditor with some contrib plugins.
And some of them have next construction in code of plugin:
For example:
If I don't have
libraries
module in the project, I got next error from drupal-check:Function libraries_get_path not found.
I have tried to add
function_exists()
condition there, but it doesn't help.Is there any way to pass such cases? Cause I see no issue in code.
The text was updated successfully, but these errors were encountered: