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

#99 Fix PHP Stan error with DrupalAutoloader. #101

Merged
merged 2 commits into from
May 21, 2024

Conversation

hkirsman
Copy link
Collaborator

@hkirsman hkirsman commented May 16, 2024

Overview

This is trivial change atm as we've just disabled Psalm in previous PR #97 We hope to get Psalm working again at some point.

There's failure in main branch tests https://app.circleci.com/pipelines/github/wunderio/code-quality/257/workflows/ba91db7e-cc48-45a4-ac72-ce8cc7530c7d/jobs/300?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-checks-link&utm_content=summary

This PR fixes it. After this we can create 3.0 for Code Quality and have GrumPHP 2.5 in our projects!

Screenshots

image

image

Testing

  1. Require this branch in your project:
    composer require wunderio/code-quality:dev-hotfix/99-fix-php_stan-error-with-DrupalAutoloader --dev --with-all-dependencies

  2. Disable psalm in grumphp.yml or otherwise you'll get "The executable for "psalm" could not be found."

image

  1. Run Code Quality. It might be that you get error about psalm and that's because you still have psalm enabled
lando grumphp run

or

ddev grumphp run

@@ -44,7 +44,8 @@
"dealerdirect/phpcodesniffer-composer-installer": "*",
"mglaman/phpstan-drupal": "^1.1",
"phpstan/extension-installer": "^1.1",
"phpstan/phpstan-deprecation-rules": "^1.0"
"phpstan/phpstan-deprecation-rules": "^1.0",
"webflo/drupal-finder": "^1.3"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm also adding requirement to version as the new class was added in 1.3 webflo/drupal-finder@1.2.2...1.3.0#diff-19dafcffb2094365c57f581c138aede2762e021675c6d8dab34c5dbb78508128R1

@@ -0,0 +1,8 @@
services:
Copy link
Collaborator Author

@hkirsman hkirsman May 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not related to current PR. It's something I missed in the GrumpPHP 2.5 update - just a nasty error if psalm task is enabled in grumphp.yml:
image

@hkirsman hkirsman requested review from tormi and misterjoonas May 16, 2024 07:48
Copy link
Member

@tormi tormi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @hkirsman !

@hkirsman hkirsman merged commit 05aeaca into main May 21, 2024
2 checks passed
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 this pull request may close these issues.

2 participants