-
-
Notifications
You must be signed in to change notification settings - Fork 374
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
[TypeDeclaration] Add TypedPropertyFromJMSSerializerAttributeTypeRector #5909
Conversation
All checks have passed 🎉 @TomasVotruba I think it is ready. |
#[\JMS\Serializer\Annotation\Type('string')] | ||
private $name; | ||
|
||
public function setName(string $name): void |
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.
assign typed already covered by other rule
https://getrector.com/demo/96ca5ad6-dd87-406e-88bf-6e073ed17e32
final class SkipWithDefault | ||
{ | ||
#[\JMS\Serializer\Annotation\Type('string')] | ||
private $name = 'foo'; |
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.
With default already covered by other rule https://getrector.com/demo/2479ea75-5faa-45b5-8b62-7738cc69d1ec
Looks great 👍 Thanks for skipping the cases covered by other rules, so we have indepedent rules |
Closes rectorphp/rector#8652