Core and composer updates
This commit is contained in:
parent
a82634bb98
commit
62cac30480
1118 changed files with 21770 additions and 6306 deletions
web/vendor/symfony/validator
|
@ -93,7 +93,7 @@ class EmailValidator extends ConstraintValidator
|
|||
return;
|
||||
}
|
||||
|
||||
$host = substr($value, strrpos($value, '@') + 1);
|
||||
$host = (string) substr($value, strrpos($value, '@') + 1);
|
||||
|
||||
// Check for host DNS resource records
|
||||
if ($constraint->checkMX) {
|
||||
|
@ -138,7 +138,7 @@ class EmailValidator extends ConstraintValidator
|
|||
*/
|
||||
private function checkMX($host)
|
||||
{
|
||||
return checkdnsrr($host, 'MX');
|
||||
return '' !== $host && checkdnsrr($host, 'MX');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -150,6 +150,6 @@ class EmailValidator extends ConstraintValidator
|
|||
*/
|
||||
private function checkHost($host)
|
||||
{
|
||||
return $this->checkMX($host) || (checkdnsrr($host, 'A') || checkdnsrr($host, 'AAAA'));
|
||||
return '' !== $host && ($this->checkMX($host) || (checkdnsrr($host, 'A') || checkdnsrr($host, 'AAAA')));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -82,7 +82,7 @@ class UrlValidator extends ConstraintValidator
|
|||
if ($constraint->checkDNS) {
|
||||
$host = parse_url($value, PHP_URL_HOST);
|
||||
|
||||
if (!checkdnsrr($host, 'ANY')) {
|
||||
if (!is_string($host) || !checkdnsrr($host, 'ANY')) {
|
||||
if ($this->context instanceof ExecutionContextInterface) {
|
||||
$this->context->buildViolation($constraint->dnsMessage)
|
||||
->setParameter('{{ value }}', $this->formatValue($host))
|
||||
|
|
2
web/vendor/symfony/validator/Validator.php
vendored
2
web/vendor/symfony/validator/Validator.php
vendored
|
@ -151,7 +151,7 @@ class Validator implements ValidatorInterface, Mapping\Factory\MetadataFactoryIn
|
|||
? '"'.$containingValue.'"'
|
||||
: 'the value of type '.gettype($containingValue);
|
||||
|
||||
throw new ValidatorException(sprintf('The metadata for '.$valueAsString.' does not support properties.'));
|
||||
throw new ValidatorException(sprintf('The metadata for %s does not support properties.', $valueAsString));
|
||||
}
|
||||
|
||||
// If $containingValue is passed as class name, take $value as root
|
||||
|
|
|
@ -5,6 +5,8 @@
|
|||
backupGlobals="false"
|
||||
colors="true"
|
||||
bootstrap="vendor/autoload.php"
|
||||
failOnRisky="true"
|
||||
failOnWarning="true"
|
||||
>
|
||||
<php>
|
||||
<ini name="error_reporting" value="-1" />
|
||||
|
|
Reference in a new issue