Skip to content
This repository has been archived by the owner on Apr 7, 2018. It is now read-only.

Fixed unescapped backslashes #12

Merged
merged 2 commits into from
Dec 26, 2013
Merged

Fixed unescapped backslashes #12

merged 2 commits into from
Dec 26, 2013

Conversation

wouterj
Copy link
Contributor

@wouterj wouterj commented Nov 19, 2013

Annotations were not rendered correctly because the backslashes were not escaped. I also think they should be placed in literals.

- The @dummy annotation. It is not a documentation annotation and not blacklisted. For Doctrine Annotations it is not entirely clear how to handle this annotation. Depending on the configuration an exception (unknown annotation) will be thrown when parsing this annotation.
- The fully qualified annotation @MyProject\Annotations\Foobarable. This is transformed directly into the given class name.
- The fully qualified annotation @MyProject\\Annotations\\Foobarable. This is transformed directly into the given class name.
Copy link
Member

Choose a reason for hiding this comment

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

I would enclose it in backticks

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, that's what I prefer too. But that means it should be changed for all annotations in this article, so I thought I might by the doctrine style guide to not do this...

@wouterj
Copy link
Contributor Author

wouterj commented Dec 25, 2013

@stof I changed them all to literals.

stof added a commit that referenced this pull request Dec 26, 2013
Fixed unescapped backslashes
@stof stof merged commit a4227b7 into doctrine:master Dec 26, 2013
@wouterj wouterj deleted the patch-1 branch December 26, 2013 18:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants