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

Annotations reader improvements #25

Merged
merged 2 commits into from Jul 28, 2018
Merged

Annotations reader improvements #25

merged 2 commits into from Jul 28, 2018

Conversation

mabar
Copy link
Contributor

@mabar mabar commented Jul 28, 2018

@mabar mabar requested a review from f3l1x July 28, 2018 09:35
/**
* @param object $entity
* @throws ValidationException
* @phpcsSuppress SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingParameterTypeHint
*/
public function validate($entity): void
{
AnnotationRegistry::registerLoader('class_exists');
AnnotationReader::addGlobalIgnoredName('mapping');
Copy link
Member

Choose a reason for hiding this comment

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

Move it to constructor please. To call it just once.

@f3l1x f3l1x merged commit f668c76 into master Jul 28, 2018
@f3l1x f3l1x deleted the phpdoc-update branch July 28, 2018 10:25
@f3l1x f3l1x added this to the v0.4 milestone Jul 28, 2018
@f3l1x f3l1x added feature and removed feature labels Oct 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

None yet

2 participants