Skip to content

Commit c33ba7f

Browse files
Merge branch '2.7' into 2.8
* 2.7: [Intl] Make intl-data tests pass and save language aliases again Remove useless docblocks
2 parents 52cb080 + 7d522db commit c33ba7f

16 files changed

+30
-71
lines changed

Encoder/DecoderInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ interface DecoderInterface
2525
*
2626
* @param string $data Data to decode
2727
* @param string $format Format name
28-
* @param array $context options that decoders have access to
28+
* @param array $context Options that decoders have access to
2929
*
3030
* The format parameter specifies which format the data is in; valid values
3131
* depend on the specific implementation. Authors implementing this interface
@@ -41,7 +41,7 @@ public function decode($data, $format, array $context = array());
4141
/**
4242
* Checks whether the deserializer can decode from given format.
4343
*
44-
* @param string $format format name
44+
* @param string $format Format name
4545
*
4646
* @return bool
4747
*/

Encoder/EncoderInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ interface EncoderInterface
2525
*
2626
* @param mixed $data Data to encode
2727
* @param string $format Format name
28-
* @param array $context options that normalizers/encoders have access to
28+
* @param array $context Options that normalizers/encoders have access to
2929
*
3030
* @return scalar
3131
*
@@ -36,7 +36,7 @@ public function encode($data, $format, array $context = array());
3636
/**
3737
* Checks whether the serializer can encode to given format.
3838
*
39-
* @param string $format format name
39+
* @param string $format Format name
4040
*
4141
* @return bool
4242
*/

Encoder/JsonDecode.php

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,24 +20,12 @@
2020
*/
2121
class JsonDecode implements DecoderInterface
2222
{
23-
/**
24-
* Specifies if the returned result should be an associative array or a nested stdClass object hierarchy.
25-
*
26-
* @var bool
27-
*/
28-
private $associative;
23+
protected $serializer;
2924

30-
/**
31-
* Specifies the recursion depth.
32-
*
33-
* @var int
34-
*/
25+
private $associative;
3526
private $recursionDepth;
36-
3727
private $lastError = JSON_ERROR_NONE;
3828

39-
protected $serializer;
40-
4129
/**
4230
* Constructs a new JsonDecode instance.
4331
*

Encoder/JsonEncoder.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,7 @@ class JsonEncoder implements EncoderInterface, DecoderInterface
2020
{
2121
const FORMAT = 'json';
2222

23-
/**
24-
* @var JsonEncode
25-
*/
2623
protected $encodingImpl;
27-
28-
/**
29-
* @var JsonDecode
30-
*/
3124
protected $decodingImpl;
3225

3326
public function __construct(JsonEncode $encodingImpl = null, JsonDecode $decodingImpl = null)

Encoder/XmlEncoder.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ public function supportsDecoding($format)
154154
/**
155155
* Sets the root node name.
156156
*
157-
* @param string $name root node name
157+
* @param string $name Root node name
158158
*/
159159
public function setRootNodeName($name)
160160
{
@@ -252,8 +252,6 @@ final protected function isElementNameValid($name)
252252
/**
253253
* Parse the input DOMNode into an array or a string.
254254
*
255-
* @param \DOMNode $node xml to parse
256-
*
257255
* @return array|string
258256
*/
259257
private function parseXml(\DOMNode $node)
@@ -288,8 +286,6 @@ private function parseXml(\DOMNode $node)
288286
/**
289287
* Parse the input DOMNode attributes into an array.
290288
*
291-
* @param \DOMNode $node xml to parse
292-
*
293289
* @return array
294290
*/
295291
private function parseXmlAttributes(\DOMNode $node)
@@ -322,8 +318,6 @@ private function parseXmlAttributes(\DOMNode $node)
322318
/**
323319
* Parse the input DOMNode value (content and children) into an array or a string.
324320
*
325-
* @param \DOMNode $node xml to parse
326-
*
327321
* @return array|string
328322
*/
329323
private function parseXmlValue(\DOMNode $node)
@@ -523,7 +517,7 @@ private function resolveXmlRootName(array $context = array())
523517
/**
524518
* Create a DOM document, taking serializer options into account.
525519
*
526-
* @param array $context options that the encoder has access to
520+
* @param array $context Options that the encoder has access to
527521
*
528522
* @return \DOMDocument
529523
*/

Mapping/Loader/FileLoader.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@
2020
*/
2121
abstract class FileLoader implements LoaderInterface
2222
{
23-
/**
24-
* @var string
25-
*/
2623
protected $file;
2724

2825
/**

Mapping/Loader/LoaderChain.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@
2727
*/
2828
class LoaderChain implements LoaderInterface
2929
{
30-
/**
31-
* @var LoaderInterface[]
32-
*/
3330
private $loaders;
3431

3532
/**

NameConverter/CamelCaseToSnakeCaseNameConverter.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,7 @@
1818
*/
1919
class CamelCaseToSnakeCaseNameConverter implements NameConverterInterface
2020
{
21-
/**
22-
* @var array|null
23-
*/
2421
private $attributes;
25-
26-
/**
27-
* @var bool
28-
*/
2922
private $lowerCamelCase;
3023

3124
/**

Normalizer/AbstractNormalizer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function __construct(ClassMetadataFactoryInterface $classMetadataFactory
7878
/**
7979
* Set circular reference limit.
8080
*
81-
* @param int $circularReferenceLimit limit of iterations for the same object
81+
* @param int $circularReferenceLimit Limit of iterations for the same object
8282
*
8383
* @return self
8484
*/
@@ -112,7 +112,7 @@ public function setCircularReferenceHandler($circularReferenceHandler)
112112
/**
113113
* Set normalization callbacks.
114114
*
115-
* @param callable[] $callbacks help normalize the result
115+
* @param callable[] $callbacks Help normalize the result
116116
*
117117
* @return self
118118
*

Normalizer/DenormalizableInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ interface DenormalizableInterface
3232
* @param array|scalar $data The data from which to re-create the object
3333
* @param string|null $format The format is optionally given to be able to denormalize differently
3434
* based on different input formats
35-
* @param array $context options for denormalizing
35+
* @param array $context Options for denormalizing
3636
*
3737
* @return object
3838
*/

Normalizer/DenormalizerInterface.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ interface DenormalizerInterface
2121
/**
2222
* Denormalizes data back into an object of the given class.
2323
*
24-
* @param mixed $data data to restore
25-
* @param string $class the expected class to instantiate
26-
* @param string $format format the given data was extracted from
27-
* @param array $context options available to the denormalizer
24+
* @param mixed $data Data to restore
25+
* @param string $class The expected class to instantiate
26+
* @param string $format Format the given data was extracted from
27+
* @param array $context Options available to the denormalizer
2828
*
2929
* @return object
3030
*/

Normalizer/NormalizableInterface.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ interface NormalizableInterface
2727
* It is important to understand that the normalize() call should normalize
2828
* recursively all child objects of the implementor.
2929
*
30-
* @param NormalizerInterface $normalizer the normalizer is given so that you
30+
* @param NormalizerInterface $normalizer The normalizer is given so that you
3131
* can use it to normalize objects contained within this object
32-
* @param string|null $format the format is optionally given to be able to normalize differently
32+
* @param string|null $format The format is optionally given to be able to normalize differently
3333
* based on different output formats
34-
* @param array $context options for normalizing this object
34+
* @param array $context Options for normalizing this object
3535
*
3636
* @return array|scalar
3737
*/

Normalizer/NormalizerInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ interface NormalizerInterface
2121
/**
2222
* Normalizes an object into a set of arrays/scalars.
2323
*
24-
* @param object $object object to normalize
25-
* @param string $format format the normalization result will be encoded as
24+
* @param object $object Object to normalize
25+
* @param string $format Format the normalization result will be encoded as
2626
* @param array $context Context options for the normalizer
2727
*
2828
* @return array|scalar

Normalizer/ObjectNormalizer.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ class ObjectNormalizer extends AbstractNormalizer
2929
{
3030
private $attributesCache = array();
3131

32-
/**
33-
* @var PropertyAccessorInterface
34-
*/
3532
protected $propertyAccessor;
3633

3734
public function __construct(ClassMetadataFactoryInterface $classMetadataFactory = null, NameConverterInterface $nameConverter = null, PropertyAccessorInterface $propertyAccessor = null)

Serializer.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ public function supportsDenormalization($data, $type, $format = null)
180180
* Returns a matching normalizer.
181181
*
182182
* @param mixed $data Data to get the serializer for
183-
* @param string $format format name, present to give the option to normalizers to act differently based on formats
183+
* @param string $format Format name, present to give the option to normalizers to act differently based on formats
184184
*
185185
* @return NormalizerInterface|null
186186
*/
@@ -196,9 +196,9 @@ private function getNormalizer($data, $format)
196196
/**
197197
* Returns a matching denormalizer.
198198
*
199-
* @param mixed $data data to restore
200-
* @param string $class the expected class to instantiate
201-
* @param string $format format name, present to give the option to normalizers to act differently based on formats
199+
* @param mixed $data Data to restore
200+
* @param string $class The expected class to instantiate
201+
* @param string $format Format name, present to give the option to normalizers to act differently based on formats
202202
*
203203
* @return DenormalizerInterface|null
204204
*/
@@ -230,9 +230,9 @@ final public function decode($data, $format, array $context = array())
230230
/**
231231
* Denormalizes data back into an object of the given class.
232232
*
233-
* @param mixed $data data to restore
234-
* @param string $class the expected class to instantiate
235-
* @param string $format format name, present to give the option to normalizers to act differently based on formats
233+
* @param mixed $data Data to restore
234+
* @param string $class The expected class to instantiate
235+
* @param string $format Format name, present to give the option to normalizers to act differently based on formats
236236
* @param array $context The context data for this particular denormalization
237237
*
238238
* @return object

SerializerInterface.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ interface SerializerInterface
2121
/**
2222
* Serializes data in the appropriate format.
2323
*
24-
* @param mixed $data any data
25-
* @param string $format format name
26-
* @param array $context options normalizers/encoders have access to
24+
* @param mixed $data Any data
25+
* @param string $format Format name
26+
* @param array $context Options normalizers/encoders have access to
2727
*
2828
* @return string
2929
*/

0 commit comments

Comments
 (0)