Skip to content

Conversation

staabm
Copy link
Contributor

@staabm staabm commented Oct 18, 2025

run: "composer install --no-interaction --no-progress"

- name: "Install build-infection"
run: "composer require phpstan/build-infection --no-interaction --no-progress"
Copy link
Member

Choose a reason for hiding this comment

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

I don't want this to be an actual Composer package with tags, I just want to actions/checkout this into a subdirectory.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So how to make composer make aware of the class loading..? Using a local composer path repository config?

Copy link
Member

Choose a reason for hiding this comment

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

What needs to load what?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Infection need to know where to find the mutator class

Copy link
Member

Choose a reason for hiding this comment

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

  1. Checkout phpstan/build-infection
  2. Run composer install in the build-infection directory
  3. Infection can now find the custom mutator class?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@staabm staabm marked this pull request as ready for review October 19, 2025 18:16
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.

Integrate into phpstan-doctrine

2 participants