Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[PropertyInfo] Types should not be extracted from private constructor #26777

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

Conversation

meyerbaptiste
Copy link
Contributor

Q A
Branch? master
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets -
License MIT
Doc PR -

Since #25605, types are now extracted from constructors. But, IMO, types should not be extracted when constructor is private.

cc @lyrixx

@meyerbaptiste meyerbaptiste force-pushed the fix_extract_from_private_constructor branch from 5cc429d to ef0b562 Compare April 3, 2018 16:31
@lyrixx
Copy link
Member

lyrixx commented Apr 3, 2018

I'm not against this change, but to me it's not an error. As we can see in you test, the string var is a string.

@meyerbaptiste
Copy link
Contributor Author

Right, after reflection with @dunglas, we are not so sure anymore! I prefer to close for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants