-
Notifications
You must be signed in to change notification settings - Fork 21
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 class to trait visitor. #157
Conversation
This lets us replace classes that extend certain other classes with a provided list of traits.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like it's working well. I tested with an abstract class and a class that implements some interfaces and it all worked.
My main beef is that the use Trait
statement gets added at the end of the class just before the closing bracket. Any chance we could move those statement to the top of the class just after the opening backet?
Travis build failure is just some linting issue. |
- Add better test case
…stripe-upgrader into pulls/class-to-trait
This lets us replace classes that extend certain other classes with a provided list of traits.