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

Change Options constructor visibility to public #892

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

HypeMC
Copy link
Contributor

@HypeMC HypeMC commented Sep 19, 2024

I have a custom implementation of the RunnerInterface that decorates the default one, and I'd like to be able to modify some options in it.
Currently, it's hard to instantiate a new Options object because the constructor is private, so I added a with method to help with that. I could also change the visibility of the constructor instead. I'd be ok with either approach, it'd just be nice to be able to do this.

@Slamdunk
Copy link
Member

I'm OK with changing constructor visibility to public, go with it

@HypeMC HypeMC force-pushed the create-new-options-from-existing branch from 578c135 to 15514c2 Compare September 19, 2024 06:17
@HypeMC HypeMC changed the title Allow creating new options from existing Change Options constructor visibility to public Sep 19, 2024
@HypeMC
Copy link
Contributor Author

HypeMC commented Sep 19, 2024

I'm OK with changing constructor visibility to public, go with it

@Slamdunk Done 😄

@Slamdunk Slamdunk merged commit 3fe7ef5 into paratestphp:7.x Sep 19, 2024
9 checks passed
@HypeMC HypeMC deleted the create-new-options-from-existing branch September 19, 2024 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants