Skip to content

Add DoctrineAnnotationParserSyncer to prevent doctrine/annotation constant by-value override#3134

Merged
TomasVotruba merged 3 commits intomasterfrom
fix-constant-parsin
Apr 4, 2020
Merged

Add DoctrineAnnotationParserSyncer to prevent doctrine/annotation constant by-value override#3134
TomasVotruba merged 3 commits intomasterfrom
fix-constant-parsin

Conversation

@TomasVotruba
Copy link
Copy Markdown
Member

Closes #3119

@TomasVotruba TomasVotruba force-pushed the fix-constant-parsin branch 2 times, most recently from d3e4899 to 9e4380b Compare April 3, 2020 15:11
@TomasVotruba
Copy link
Copy Markdown
Member Author

TomasVotruba commented Apr 3, 2020

How to test? This must pass

vendor/bin/phpunit packages/better-php-doc-parser/tests/PhpDocParser/SymfonyValidation/AssertTypeTagValueNodeTest.php

@TomasVotruba TomasVotruba force-pushed the fix-constant-parsin branch 6 times, most recently from 8dccc3f to e0d2bd3 Compare April 3, 2020 21:16
@TomasVotruba TomasVotruba changed the title Prevent doctrine/annotatoin parser from resolving constant value Add DoctrineAnnotationParserSyncer to prevent doctrine/annotation constant by-value override Apr 3, 2020
@TomasVotruba TomasVotruba force-pushed the fix-constant-parsin branch 8 times, most recently from 1b90fd5 to 9b6121d Compare April 4, 2020 01:03
@TomasVotruba
Copy link
Copy Markdown
Member Author

@enumag It's done, check it + review if you like

{
return __DIR__ . '/../../../../packages/doctrine-annotation-generated/src/ConstantPreservingAnnotationReader.php';
}
}
Copy link
Copy Markdown
Member Author

@TomasVotruba TomasVotruba Apr 4, 2020

Choose a reason for hiding this comment

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

@enumag This is one of 2 files re-generated from vendor to local namespace changes and fixes.

@TomasVotruba TomasVotruba force-pushed the fix-constant-parsin branch 2 times, most recently from 27c6f22 to 2385def Compare April 4, 2020 20:28
@TomasVotruba TomasVotruba force-pushed the fix-constant-parsin branch from 87a1c61 to 6291b39 Compare April 4, 2020 20:39
@TomasVotruba TomasVotruba merged commit df3a2cf into master Apr 4, 2020
@TomasVotruba TomasVotruba deleted the fix-constant-parsin branch April 4, 2020 20:54
TomasVotruba added a commit that referenced this pull request Dec 1, 2022
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.

Rector replaces ::class constant with FQCN in annotations

1 participant