Mercurial > hg > isophonics-drupal-site
diff vendor/symfony/validator/Mapping/ClassMetadata.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children | c2387f117808 |
line wrap: on
line diff
--- a/vendor/symfony/validator/Mapping/ClassMetadata.php Mon Apr 23 09:33:26 2018 +0100 +++ b/vendor/symfony/validator/Mapping/ClassMetadata.php Mon Apr 23 09:46:53 2018 +0100 @@ -47,7 +47,7 @@ public $defaultGroup; /** - * @var MemberMetadata[] + * @var MemberMetadata[][] * * @internal This property is public in order to reduce the size of the * class' serialized representation. Do not access it. Use @@ -334,11 +334,13 @@ /** * Merges the constraints of the given metadata into this object. - * - * @param ClassMetadata $source The source metadata */ public function mergeConstraints(ClassMetadata $source) { + if ($source->isGroupSequenceProvider()) { + $this->setGroupSequenceProvider(true); + } + foreach ($source->getConstraints() as $constraint) { $this->addConstraint(clone $constraint); } @@ -498,11 +500,6 @@ return CascadingStrategy::NONE; } - /** - * Adds a property metadata. - * - * @param PropertyMetadataInterface $metadata - */ private function addPropertyMetadata(PropertyMetadataInterface $metadata) { $property = $metadata->getPropertyName();