Skip to content

Add more test cases for abstract methods of traits #19

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

Merged
merged 2 commits into from
Feb 19, 2023

Conversation

herndlm
Copy link
Contributor

@herndlm herndlm commented Feb 19, 2023

this looks as expected though, doesn't it? nothing is removed..

@szepeviktor
Copy link
Member

Could you actually use the trait in one of the classes?

@herndlm
Copy link
Contributor Author

herndlm commented Feb 19, 2023

sorry Viktor, this does not fix anything whatsoever. the trait is fine IMO, the reason is that protected methods are removed from final classes IMO, because I did not think that those files are going to be executed. see php-stubs/woocommerce-stubs#20 (comment)
when we execute them we shouldn't remove anything I guess

@herndlm
Copy link
Contributor Author

herndlm commented Feb 19, 2023

but I'll add a trait usage, at least the tests got better then

@szepeviktor
Copy link
Member

Thank you @herndlm!

@szepeviktor szepeviktor merged commit 842db74 into php-stubs:master Feb 19, 2023
@herndlm herndlm deleted the trait-abstract-method-tests branch February 19, 2023 18:18
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