Update to Drupal 8.2.6. For more information, see https://www.drupal.org/project/drupal/releases/8.2.6

This commit is contained in:
Pantheon Automation 2017-02-02 16:28:38 -08:00 committed by Greg Anderson
parent db56c09587
commit f1e72395cb
588 changed files with 26857 additions and 2777 deletions

View file

@ -59,7 +59,7 @@ class ChainDecoder implements DecoderInterface
*
* @return DecoderInterface
*
* @throws RuntimeException if no decoder is found
* @throws RuntimeException If no decoder is found.
*/
private function getDecoder($format)
{

View file

@ -25,7 +25,7 @@ interface DecoderInterface
*
* @param string $data Data to decode
* @param string $format Format name
* @param array $context options that decoders have access to.
* @param array $context options that decoders have access to
*
* The format parameter specifies which format the data is in; valid values
* depend on the specific implementation. Authors implementing this interface

View file

@ -25,7 +25,7 @@ interface EncoderInterface
*
* @param mixed $data Data to encode
* @param string $format Format name
* @param array $context options that normalizers/encoders have access to.
* @param array $context options that normalizers/encoders have access to
*
* @return scalar
*

View file

@ -461,6 +461,8 @@ class XmlEncoder extends SerializerAwareEncoder implements EncoderInterface, Dec
* @param mixed $val
*
* @return bool
*
* @throws UnexpectedValueException
*/
private function selectNodeType(\DOMNode $node, $val)
{
@ -506,7 +508,7 @@ class XmlEncoder extends SerializerAwareEncoder implements EncoderInterface, Dec
/**
* Create a DOM document, taking serializer options into account.
*
* @param array $context options that the encoder has access to.
* @param array $context options that the encoder has access to
*
* @return \DOMDocument
*/

View file

@ -1,4 +1,4 @@
Copyright (c) 2004-2016 Fabien Potencier
Copyright (c) 2004-2017 Fabien Potencier
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

View file

@ -27,7 +27,7 @@ interface ClassMetadataInterface
/**
* Returns the name of the backing PHP class.
*
* @return string The name of the backing class.
* @return string The name of the backing class
*/
public function getName();

View file

@ -29,8 +29,8 @@ class CamelCaseToSnakeCaseNameConverter implements NameConverterInterface
private $lowerCamelCase;
/**
* @param null|array $attributes The list of attributes to rename or null for all attributes.
* @param bool $lowerCamelCase Use lowerCamelCase style.
* @param null|array $attributes The list of attributes to rename or null for all attributes
* @param bool $lowerCamelCase Use lowerCamelCase style
*/
public function __construct(array $attributes = null, $lowerCamelCase = true)
{

View file

@ -38,8 +38,8 @@ class CustomNormalizer extends SerializerAwareNormalizer implements NormalizerIn
/**
* Checks if the given class implements the NormalizableInterface.
*
* @param mixed $data Data to normalize.
* @param string $format The format being (de-)serialized from or into.
* @param mixed $data Data to normalize
* @param string $format The format being (de-)serialized from or into
*
* @return bool
*/
@ -51,9 +51,9 @@ class CustomNormalizer extends SerializerAwareNormalizer implements NormalizerIn
/**
* Checks if the given class implements the NormalizableInterface.
*
* @param mixed $data Data to denormalize from.
* @param string $type The class to which the data should be denormalized.
* @param string $format The format being deserialized from.
* @param mixed $data Data to denormalize from
* @param string $type The class to which the data should be denormalized
* @param string $format The format being deserialized from
*
* @return bool
*/

View file

@ -29,10 +29,12 @@ interface DenormalizableInterface
*
* @param DenormalizerInterface $denormalizer The denormalizer is given so that you
* can use it to denormalize objects contained within this object
* @param array|scalar $data The data from which to re-create the object.
* @param array|scalar $data The data from which to re-create the object
* @param string|null $format The format is optionally given to be able to denormalize differently
* based on different input formats
* @param array $context options for denormalizing
*
* @return object
*/
public function denormalize(DenormalizerInterface $denormalizer, $data, $format = null, array $context = array());
}

View file

@ -33,9 +33,9 @@ interface DenormalizerInterface
/**
* Checks whether the given class is supported for denormalization by this normalizer.
*
* @param mixed $data Data to denormalize from.
* @param string $type The class to which the data should be denormalized.
* @param string $format The format being deserialized from.
* @param mixed $data Data to denormalize from
* @param string $type The class to which the data should be denormalized
* @param string $format The format being deserialized from
*
* @return bool
*/

View file

@ -164,7 +164,7 @@ class GetSetMethodNormalizer extends AbstractNormalizer
*
* @param \ReflectionMethod $method the method to check
*
* @return bool whether the method is a getter or boolean getter.
* @return bool whether the method is a getter or boolean getter
*/
private function isGetMethod(\ReflectionMethod $method)
{

View file

@ -33,7 +33,7 @@ interface NormalizableInterface
* based on different output formats.
* @param array $context Options for normalizing this object
*
* @return array|string|bool|int|float|null
* @return array|scalar
*/
public function normalize(NormalizerInterface $normalizer, $format = null, array $context = array());
}

View file

@ -25,15 +25,15 @@ interface NormalizerInterface
* @param string $format format the normalization result will be encoded as
* @param array $context Context options for the normalizer
*
* @return array|string|bool|int|float|null
* @return array|scalar
*/
public function normalize($object, $format = null, array $context = array());
/**
* Checks whether the given class is supported for normalization by this normalizer.
*
* @param mixed $data Data to normalize.
* @param string $format The format being (de-)serialized from or into.
* @param mixed $data Data to normalize
* @param string $format The format being (de-)serialized from or into
*
* @return bool
*/

View file

@ -250,15 +250,6 @@ class Serializer implements SerializerInterface, NormalizerInterface, Denormaliz
return $normalizer->denormalize($data, $class, $format, $context);
}
foreach ($this->normalizers as $normalizer) {
if (
$normalizer instanceof DenormalizerInterface &&
$normalizer->supportsDenormalization($data, $class, $format)
) {
return $normalizer->denormalize($data, $class, $format, $context);
}
}
throw new UnexpectedValueException(sprintf('Could not denormalize object of type %s, no supporting normalizer found.', $class));
}