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
*/

0 commit comments

Comments
 (0)