Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit19aee3d

Browse files
committed
Update changelog
1 parentff1727e commit19aee3d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

‎src/Symfony/Component/Serializer/CHANGELOG.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ CHANGELOG
66

77
*`AbstractNormalizer::handleCircularReference` is now final, and receives two optional extra arguments: the format and the context
88
* added support for XML comment encoding (encoding`['#comment' => ' foo ']` results`<!-- foo -->`)
9+
* added optional`int[] $encoderIgnoredNodeTypes` argument to`XmlEncoder::__construct` to configure node types to be
10+
ignored during encodage.
911

1012
4.1.0
1113
-----

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ private function buildXml(\DOMNode $parentNode, $data, string $xmlRootNodeName =
377377
$parentNode->setAttribute($attributeName,$data);
378378
}elseif ('#' ===$key) {
379379
$append =$this->selectNodeType($parentNode,$data);
380-
}elseif ('#comment' ===$key) {
380+
}elseif ('#comment' ===$key && !\in_array(XML_COMMENT_NODE,$this->encoderIgnoredNodeTypes,true)) {
381381
$append =$this->appendComment($parentNode,$data);
382382
}elseif (\is_array($data) &&false ===is_numeric($key)) {
383383
// Is this array fully numeric keys?

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp