Skip to content

Commit 5f76146

Browse files
TysonAndrefabpot
authored andcommitted
Fix minor phpdoc mismatches with the code(detected by phan)
1 parent f88908e commit 5f76146

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)