Skip to content

Commit e2ff17a

Browse files
committed
Merge branch '4.4'
* 4.4: [Mailer] Fix SmtpEnvelope renaming to Envelope fixed "link" to Contracts packages [WebProfilerBundle] Fix time panel legend buttons Some styling tweaks Fixed cache pools affecting each other due to an overwritten seed variable don't change state in case of exception properly catch legacy tag syntax usages minor tweaks to the welcome page
2 parents cf248f3 + 9ae314e commit e2ff17a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ValidatorBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,12 +263,12 @@ public function setMetadataFactory(MetadataFactoryInterface $metadataFactory)
263263
*/
264264
public function setMappingCache(CacheItemPoolInterface $cache)
265265
{
266-
$this->mappingCache = $cache;
267-
268266
if (null !== $this->metadataFactory) {
269267
throw new ValidatorException('You cannot set a custom mapping cache after setting a custom metadata factory. Configure your metadata factory instead.');
270268
}
271269

270+
$this->mappingCache = $cache;
271+
272272
return $this;
273273
}
274274

0 commit comments

Comments
 (0)