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

ModuleHandler->loadInclude() call is not being processed #6120

Closed
andyg5000 opened this issue Sep 27, 2024 · 5 comments
Closed

ModuleHandler->loadInclude() call is not being processed #6120

andyg5000 opened this issue Sep 27, 2024 · 5 comments

Comments

@andyg5000
Copy link

As originally opened in mglaman/phpstan-drupal#741, phpstan is not loading the includes when testing.

We need to update the phpstan config to load the necessary rules from phpstan-drupal.

andyg5000 added a commit to andyg5000/drush that referenced this issue Sep 27, 2024
@andyg5000
Copy link
Author

The pull request is incoming. We'll be left with these issues to resolve after removing the exclusions of the 2 commands.

 ------ -----------------------------------------------------------------
  Line   Commands/core/LanguageCommands.php
 ------ -----------------------------------------------------------------
  61     Call to an undefined method Psr\Log\LoggerInterface::success().
         ✏️  Commands/core/LanguageCommands.php
 ------ -----------------------------------------------------------------

 ------ ------------------------------------------------------------------
  Line   Commands/core/LocaleCommands.php
 ------ ------------------------------------------------------------------
  488    Variable $reader_item in empty() always exists and is not falsy.
         ✏️  Commands/core/LocaleCommands.php
 ------ ------------------------------------------------------------------

@weitzman
Copy link
Member

Could you please grant me push access to this PR? I have a couple updates.

@weitzman
Copy link
Member

Also, the phpstan test failures suggest that includes are still not processing https://app.circleci.com/pipelines/github/drush-ops/drush/7241/workflows/2074396b-9939-4d95-9c47-57818a1411cb/jobs/43203/tests

@andyg5000
Copy link
Author

Edits by maintainers should be already allowed. I added you both to the project anyway.

@mglaman and I realized that the phpstan run will be cached even if the phpstan.neon is changed because it only watches the scanned files for cache invalidation. If you pull this down and add the --debug flag you'll see that only the 2 problematic calls (listed above) are being flagged.

Let me know what else you need here.

Thanks,
Andy

@weitzman
Copy link
Member

weitzman commented Sep 28, 2024

Thanks. I moved my fixes to a new PR at #6122. Lets discuss there.

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 a pull request may close this issue.

2 participants