Skip to content

Commit ff3821f

Browse files
Merge branch '2.8' into 3.3
* 2.8: [Intl] Make intl-data tests pass and save language aliases again Remove useless docblocks [PropertyInfo] Remove useless docblocks
2 parents beff865 + c33ba7f commit ff3821f

16 files changed

+33
-74
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
@@ -159,7 +159,7 @@ public function supportsDecoding($format)
159159
/**
160160
* Sets the root node name.
161161
*
162-
* @param string $name root node name
162+
* @param string $name Root node name
163163
*/
164164
public function setRootNodeName($name)
165165
{
@@ -257,8 +257,6 @@ final protected function isElementNameValid($name)
257257
/**
258258
* Parse the input DOMNode into an array or a string.
259259
*
260-
* @param \DOMNode $node xml to parse
261-
*
262260
* @return array|string
263261
*/
264262
private function parseXml(\DOMNode $node)
@@ -293,8 +291,6 @@ private function parseXml(\DOMNode $node)
293291
/**
294292
* Parse the input DOMNode attributes into an array.
295293
*
296-
* @param \DOMNode $node xml to parse
297-
*
298294
* @return array
299295
*/
300296
private function parseXmlAttributes(\DOMNode $node)
@@ -327,8 +323,6 @@ private function parseXmlAttributes(\DOMNode $node)
327323
/**
328324
* Parse the input DOMNode value (content and children) into an array or a string.
329325
*
330-
* @param \DOMNode $node xml to parse
331-
*
332326
* @return array|string
333327
*/
334328
private function parseXmlValue(\DOMNode $node)
@@ -528,7 +522,7 @@ private function resolveXmlRootName(array $context = array())
528522
/**
529523
* Create a DOM document, taking serializer options into account.
530524
*
531-
* @param array $context options that the encoder has access to
525+
* @param array $context Options that the encoder has access to
532526
*
533527
* @return \DOMDocument
534528
*/

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
@@ -80,7 +80,7 @@ public function __construct(ClassMetadataFactoryInterface $classMetadataFactory
8080
/**
8181
* Set circular reference limit.
8282
*
83-
* @param int $circularReferenceLimit limit of iterations for the same object
83+
* @param int $circularReferenceLimit Limit of iterations for the same object
8484
*
8585
* @return self
8686
*/
@@ -108,7 +108,7 @@ public function setCircularReferenceHandler(callable $circularReferenceHandler)
108108
/**
109109
* Set normalization callbacks.
110110
*
111-
* @param callable[] $callbacks help normalize the result
111+
* @param callable[] $callbacks Help normalize the result
112112
*
113113
* @return self
114114
*

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)