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

EZP-25100: Removed @required doc tags on value objects properties #1505

Merged
merged 1 commit into from Nov 18, 2015

Conversation

lolautruche
Copy link
Contributor

https://jira.ez.no/browse/EZP-25100

These tags are actually useless and are not taken into account by PHPDoc.
Problem is they conflict with Symfony (well actually Doctrine) annotation reader, used by Validation component.

They lead to exceptions like:

[Semantical Error] The annotation "@required" in property 
eZ\Publish\API\Repository\Values\Content\ContentCreateStruct::$contentType was never imported. 
Did you maybe forget to add a "use" statement for this annotation

> https://jira.ez.no/browse/EZP-25100

These tags are actually useless and are not taken into account by PHPDoc.
Problem is they conflict with Symfony (well actually Doctrine) annotation reader,
used by Validation component.
They lead to exceptions like:

```
[Semantical Error] The annotation "@required" in property eZ\Publish\API\Repository\Values\Content\ContentCreateStruct::$contentType was never imported. Did you maybe forget to add a "use" statement for this annotation
```
@lolautruche
Copy link
Contributor Author

Review ping @andrerom @bdunogier @glye

@bdunogier
Copy link
Member

+1

2 similar comments
@glye
Copy link
Member

glye commented Nov 17, 2015

+1

@andrerom
Copy link
Contributor

+1

lolautruche added a commit that referenced this pull request Nov 18, 2015
EZP-25100: Removed @required doc tags on value objects properties
@lolautruche lolautruche merged commit 1331f25 into master Nov 18, 2015
@lolautruche lolautruche deleted the EZP-25100_RemoveRequiredDocTags branch November 18, 2015 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants