8000 [Serializer] Fix style issues and @param type. · symfony/symfony@3856734 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3856734

Browse files
author
James Sansbury
committed
[Serializer] Fix style issues and @param type.
1 parent 5fb630d commit 3856734

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Symfony/Component/Serializer/Encoder/XmlEncoder.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ class XmlEncoder implements EncoderInterface, DecoderInterface, NormalizationAwa
4242
/**
4343
* Construct new XmlEncoder and allow to change the root node element name.
4444
*
45-
* @param int|null $loadOptions A bit field of LIBXML_* constants
46-
* @param array $ignoredNodeTypes An array of ignored XML node types, each one of the DOM Predefined XML_* Constants.
45+
* @param int|null $loadOptions A bit field of LIBXML_* constants
46+
* @param int[] $ignoredNodeTypes an array of ignored XML node types, each one of the DOM Predefined XML_* Constants
4747
*/
4848
public function __construct(string $rootNodeName = 'response', int $loadOptions = null, array $ignoredNodeTypes = null)
4949
{
@@ -108,7 +108,7 @@ public function decode($data, $format, array $context = array())
108108
if (XML_DOCUMENT_TYPE_NODE === $child->nodeType) {
109109
throw new NotEncodableValueException('Document types are not allowed.');
110110
}
111-
if (!$rootNode && !\in_array($child->nodeType, $this->ignoredNodeTypes, TRUE)) {
111+
if (!$rootNode && !\in_array($child->nodeType, $this->ignoredNodeTypes, true)) {
112112
$rootNode = $child;
113113
}
114114
}
@@ -319,7 +319,7 @@ private function parseXmlValue(\DOMNode $node, array $context = array())
319319
$value = array();
320320

321321
foreach ($node->childNodes as $subnode) {
322-
if (\in_array($subnode->nodeType, $this->ignoredNodeTypes, TRUE)) {
322+
if (\in_array($subnode->nodeType, $this->ignoredNodeTypes, true)) {
323323
continue;
324324
}
325325

0 commit comments

Comments
 (0)
0