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

add getMockForTrait to dynamic return type #50

Closed
wants to merge 1 commit into from
Closed

add getMockForTrait to dynamic return type #50

wants to merge 1 commit into from

Conversation

pavarnos
Copy link

@pavarnos pavarnos commented Jul 8, 2019

No description provided.

@pavarnos
Copy link
Author

pavarnos commented Jul 8, 2019

This fix is different to #29. It does not reply on the fluent phpUnit mock builder like #29 does. It seems to work fine on my code base.

@ondrejmirtes
Copy link
Member

Hi, it can't work since trait isn't a typehintable type. You'd have to create an artificial interface with all the trait's methods which probably isn't worth it.

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