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

Removed redundant property initialization #1232

Merged

Conversation

xepozz
Copy link
Contributor

@xepozz xepozz commented Jul 6, 2020

Q A
Bug fix? no
New feature? no
Doc updated no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets
License MIT

@goetas
Copy link
Collaborator

goetas commented Sep 2, 2020

can you explain the reasoning for this change? is done via some automated tool?

@@ -222,8 +222,6 @@ public function loadMetadataForClass(\ReflectionClass $class): ?BaseClassMetadat
} elseif ($annot instanceof XmlValue) {
$propertyMetadata->xmlValue = true;
$propertyMetadata->xmlElementCData = $annot->cdata;
} elseif ($annot instanceof XmlElement) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why removing this?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@goetas , maybe because it is defined a bit up, at line#201

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uu, right, thanks!

@goetas
Copy link
Collaborator

goetas commented Oct 29, 2020

thanks!

@goetas goetas merged commit eb7168d into schmittjoh:master Oct 29, 2020
@xepozz xepozz deleted the fix-redundant-property-initialization branch October 30, 2020 06:54
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.

3 participants