projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added the Search API Synonym module to deal specifically with licence and license...
[yaffs-website]
/
vendor
/
symfony
/
validator
/
ValidatorBuilder.php
diff --git
a/vendor/symfony/validator/ValidatorBuilder.php
b/vendor/symfony/validator/ValidatorBuilder.php
index 4268570858b93ef92e5b704f8d091c1d661b13f1..3562b945922af3ac34bea7bca8efaf16cfff99e5 100644
(file)
--- a/
vendor/symfony/validator/ValidatorBuilder.php
+++ b/
vendor/symfony/validator/ValidatorBuilder.php
@@
-68,7
+68,7
@@
class ValidatorBuilder implements ValidatorBuilderInterface
private $translator;
/**
private $translator;
/**
- * @var
null|string
+ * @var
string|null
*/
private $translationDomain;
*/
private $translationDomain;
@@
-213,7
+213,7
@@
class ValidatorBuilder implements ValidatorBuilderInterface
*/
public function setMetadataFactory(MetadataFactoryInterface $metadataFactory)
{
*/
public function setMetadataFactory(MetadataFactoryInterface $metadataFactory)
{
- if (
count($this->xmlMappings) > 0 || count($this->yamlMappings) > 0 ||
count($this->methodMappings) > 0 || null !== $this->annotationReader) {
+ if (
\count($this->xmlMappings) > 0 || \count($this->yamlMappings) > 0 || \
count($this->methodMappings) > 0 || null !== $this->annotationReader) {
throw new ValidatorException('You cannot set a custom metadata factory after adding custom mappings. You should do either of both.');
}
throw new ValidatorException('You cannot set a custom metadata factory after adding custom mappings. You should do either of both.');
}
@@
-303,9
+303,9
@@
class ValidatorBuilder implements ValidatorBuilderInterface
$loaders = $this->getLoaders();
$loader = null;
$loaders = $this->getLoaders();
$loader = null;
- if (count($loaders) > 1) {
+ if (
\
count($loaders) > 1) {
$loader = new LoaderChain($loaders);
$loader = new LoaderChain($loaders);
- } elseif (1 === count($loaders)) {
+ } elseif (1 ===
\
count($loaders)) {
$loader = $loaders[0];
}
$loader = $loaders[0];
}