Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit af66815

Browse files
committed
Convert to traditionnal array syntax
1 parent 9cf81e0 commit af66815

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1775,7 +1775,7 @@ private function export($value)
17751775

17761776
private function doExport($value, $resolveEnv = false)
17771777
{
1778-
if (is_string($value) && \in_array(preg_match('/[^\s\P{Cc}]/u', $value), [false, 1], true)) {
1778+
if (is_string($value) && \in_array(preg_match('/[^\s\P{Cc}]/u', $value), array(false, 1), true)) {
17791779
$toHex = function (&$values, $char) {
17801780
return $values.sprintf('\\x%02x', ord($char));
17811781
};

src/Symfony/Component/DependencyInjection/Dumper/XmlDumper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ private function convertParameters(array $parameters, $type, \DOMElement $parent
298298
$element->setAttribute('type', 'expression');
299299
$text = $this->document->createTextNode(self::phpToXml((string) $value));
300300
$element->appendChild($text);
301-
} elseif (is_string($value) && \in_array(preg_match('/[^\s\P{Cc}]/u', $value), [false, 1], true)) {
301+
} elseif (is_string($value) && \in_array(preg_match('/[^\s\P{Cc}]/u', $value), array(false, 1), true)) {
302302
$element->setAttribute('type', 'binary');
303303
$text = $this->document->createTextNode(self::phpToXml(base64_encode($value)));
304304
$element->appendChild($text);

0 commit comments

Comments
 (0)