Skip to content

Commit dee868b

Browse files
committed
Merge branch '2.7' into 2.8
* 2.7: Fix minor phpdoc mismatches with the code(detected by phan) [Asset] Starting slash should indicate no basePath wanted [Security] Fix phpdoc logout listener Fix minor typo in the main README.md
2 parents 59dd67c + 5f76146 commit dee868b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Encoder/XmlEncoder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ private function appendNode(\DOMNode $parentNode, $data, $nodeName, $key = null)
468468
*/
469469
private function needsCdataWrapping($val)
470470
{
471-
return preg_match('/[<>&]/', $val);
471+
return 0 < preg_match('/[<>&]/', $val);
472472
}
473473

474474
/**

0 commit comments

Comments
 (0)