Skip to content

Commit 0bc1cf7

Browse files
committed
fixed types in phpdocs
1 parent 10c7b75 commit 0bc1cf7

11 files changed

+26
-26
lines changed

Encoder/ChainEncoder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function supportsEncoding($format)
5757
*
5858
* @param string $format
5959
*
60-
* @return Boolean
60+
* @return bool
6161
*/
6262
public function needsNormalization($format)
6363
{

Encoder/DecoderInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function decode($data, $format, array $context = array());
3939
*
4040
* @param string $format format name
4141
*
42-
* @return Boolean
42+
* @return bool
4343
*/
4444
public function supportsDecoding($format);
4545
}

Encoder/EncoderInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function encode($data, $format, array $context = array());
3434
*
3535
* @param string $format format name
3636
*
37-
* @return Boolean
37+
* @return bool
3838
*/
3939
public function supportsEncoding($format);
4040
}

Encoder/JsonDecode.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ class JsonDecode implements DecoderInterface
2121
/**
2222
* Specifies if the returned result should be an associative array or a nested stdClass object hierarchy.
2323
*
24-
* @var Boolean
24+
* @var bool
2525
*/
2626
private $associative;
2727

2828
/**
2929
* Specifies the recursion depth.
3030
*
31-
* @var integer
31+
* @var int
3232
*/
3333
private $recursionDepth;
3434

@@ -50,7 +50,7 @@ public function __construct($associative = false, $depth = 512)
5050
/**
5151
* Returns the last decoding error (if any).
5252
*
53-
* @return integer
53+
* @return int
5454
*
5555
* @see http://php.net/manual/en/function.json-last-error.php json_last_error
5656
*/

Encoder/JsonEncode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function __construct($bitmask = 0)
2929
/**
3030
* Returns the last encoding error (if any)
3131
*
32-
* @return integer
32+
* @return int
3333
*
3434
* @see http://php.net/manual/en/function.json-last-error.php json_last_error
3535
*/

Encoder/JsonEncoder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function __construct(JsonEncode $encodingImpl = null, JsonDecode $decodin
3939
/**
4040
* Returns the last encoding error (if any)
4141
*
42-
* @return integer
42+
* @return int
4343
*/
4444
public function getLastEncodingError()
4545
{
@@ -49,7 +49,7 @@ public function getLastEncodingError()
4949
/**
5050
* Returns the last decoding error (if any)
5151
*
52-
* @return integer
52+
* @return int
5353
*/
5454
public function getLastDecodingError()
5555
{

Encoder/XmlEncoder.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public function decode($data, $format, array $context = array())
119119
*
120120
* @param string $format format name
121121
*
122-
* @return Boolean
122+
* @return bool
123123
*/
124124
public function supportsEncoding($format)
125125
{
@@ -131,7 +131,7 @@ public function supportsEncoding($format)
131131
*
132132
* @param string $format format name
133133
*
134-
* @return Boolean
134+
* @return bool
135135
*/
136136
public function supportsDecoding($format)
137137
{
@@ -161,7 +161,7 @@ public function getRootNodeName()
161161
* @param \DOMNode $node
162162
* @param string $val
163163
*
164-
* @return Boolean
164+
* @return bool
165165
*/
166166
final protected function appendXMLString($node, $val)
167167
{
@@ -180,7 +180,7 @@ final protected function appendXMLString($node, $val)
180180
* @param DOMNode $node
181181
* @param string $val
182182
*
183-
* @return Boolean
183+
* @return bool
184184
*/
185185
final protected function appendText($node, $val)
186186
{
@@ -194,7 +194,7 @@ final protected function appendText($node, $val)
194194
* @param DOMNode $node
195195
* @param string $val
196196
*
197-
* @return Boolean
197+
* @return bool
198198
*/
199199
final protected function appendCData($node, $val)
200200
{
@@ -208,7 +208,7 @@ final protected function appendCData($node, $val)
208208
* @param DOMNode $node
209209
* @param DOMDocumentFragment $fragment
210210
*
211-
* @return Boolean
211+
* @return bool
212212
*/
213213
final protected function appendDocumentFragment($node, $fragment)
214214
{
@@ -226,7 +226,7 @@ final protected function appendDocumentFragment($node, $fragment)
226226
*
227227
* @param string $name
228228
*
229-
* @return Boolean
229+
* @return bool
230230
*/
231231
final protected function isElementNameValid($name)
232232
{
@@ -293,7 +293,7 @@ private function parseXml($node)
293293
* @param array|object $data data
294294
* @param string $xmlRootNodeName
295295
*
296-
* @return Boolean
296+
* @return bool
297297
*
298298
* @throws UnexpectedValueException
299299
*/
@@ -362,7 +362,7 @@ private function buildXml($parentNode, $data, $xmlRootNodeName = null)
362362
* @param string $nodeName
363363
* @param string $key
364364
*
365-
* @return Boolean
365+
* @return bool
366366
*/
367367
private function appendNode($parentNode, $data, $nodeName, $key = null)
368368
{
@@ -384,7 +384,7 @@ private function appendNode($parentNode, $data, $nodeName, $key = null)
384384
*
385385
* @param string $val
386386
*
387-
* @return Boolean
387+
* @return bool
388388
*/
389389
private function needsCdataWrapping($val)
390390
{
@@ -397,7 +397,7 @@ private function needsCdataWrapping($val)
397397
* @param DOMNode $node
398398
* @param mixed $val
399399
*
400-
* @return Boolean
400+
* @return bool
401401
*/
402402
private function selectNodeType($node, $val)
403403
{

Normalizer/CustomNormalizer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function denormalize($data, $class, $format = null, array $context = arra
4141
* @param mixed $data Data to normalize.
4242
* @param string $format The format being (de-)serialized from or into.
4343
*
44-
* @return Boolean
44+
* @return bool
4545
*/
4646
public function supportsNormalization($data, $format = null)
4747
{
@@ -55,7 +55,7 @@ public function supportsNormalization($data, $format = null)
5555
* @param string $type The class to which the data should be denormalized.
5656
* @param string $format The format being deserialized from.
5757
*
58-
* @return Boolean
58+
* @return bool
5959
*/
6060
public function supportsDenormalization($data, $type, $format = null)
6161
{

Normalizer/DenormalizerInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function denormalize($data, $class, $format = null, array $context = arra
3737
* @param string $type The class to which the data should be denormalized.
3838
* @param string $format The format being deserialized from.
3939
*
40-
* @return Boolean
40+
* @return bool
4141
*/
4242
public function supportsDenormalization($data, $type, $format = null);
4343
}

Normalizer/GetSetMethodNormalizer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ public function supportsDenormalization($data, $type, $format = null)
195195
*
196196
* @param string $class
197197
*
198-
* @return Boolean
198+
* @return bool
199199
*/
200200
private function supports($class)
201201
{
@@ -215,7 +215,7 @@ private function supports($class)
215215
*
216216
* @param \ReflectionMethod $method the method to check
217217
*
218-
* @return Boolean whether the method is a getter.
218+
* @return bool whether the method is a getter.
219219
*/
220220
private function isGetMethod(\ReflectionMethod $method)
221221
{

Normalizer/NormalizerInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function normalize($object, $format = null, array $context = array());
3535
* @param mixed $data Data to normalize.
3636
* @param string $format The format being (de-)serialized from or into.
3737
*
38-
* @return Boolean
38+
* @return bool
3939
*/
4040
public function supportsNormalization($data, $format = null);
4141
}

0 commit comments

Comments
 (0)