-
-
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
drupal-check fails when some modules exist #42
Comments
It looks like this is related to the fix for mglaman/phpstan-drupal#51, but that one doesn't seem to cover the |
The problem is this line in the
I may need to tag a new phpstan-drupal release. |
The problem is definitely in the |
Hello,
If I remove this module, I don't get this error anymore. |
This will be fixed in 1.0.10 to not be a hard failure. |
Releasing 1.0.10 shortly, please test. It should recover this error and just print it. |
I confirm this is fixed in 1.0.10, thanks! |
I found that having the
examples
module installed in a Drupal instance (even if not enabled) will causedrupal-check
to fail with an opaque error and no other output:This can be replicated by creating brand-new install of Drupal built via the composer command in the readme, then installing the examples module with composer before running
drupal-check
:Here is a portion of the backtrace where the exception was being generated:
While drupal-check can't be responsible for all modules, it would be helpful to at least catch exceptions in the Bootstrap process and output a message indicating which module or theme is the offending one.
The text was updated successfully, but these errors were encountered: