Skip to content

Commit

Permalink
Make phpcs happy
Browse files Browse the repository at this point in the history
  • Loading branch information
dunglas committed May 13, 2019
1 parent 540b594 commit d52989c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions DependencyInjection/DoctrineExtension.php
Expand Up @@ -796,9 +796,11 @@ private function loadPropertyInfoExtractor($entityManagerName, ContainerBuilder
$propertyExtractorDefinition->addTag('property_info.list_extractor', ['priority' => -1001]);
$propertyExtractorDefinition->addTag('property_info.type_extractor', ['priority' => -999]);

if (is_a(DoctrineExtractor::class, PropertyAccessExtractorInterface::class, true)) {
$propertyExtractorDefinition->addTag('property_info.access_extractor', ['priority' => -999]);
if (! is_a(DoctrineExtractor::class, PropertyAccessExtractorInterface::class, true)) {
return;
}

$propertyExtractorDefinition->addTag('property_info.access_extractor', ['priority' => -999]);
}

/**
Expand Down

0 comments on commit d52989c

Please sign in to comment.