8000 fixed fixtures · symfony/symfony@ac9d6cf · GitHub
[go: up one dir, main page]

Skip to content

Commit ac9d6cf

Browse files
committed
fixed fixtures
1 parent 33a001e commit ac9d6cf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Symfony/Component/Intl/Data/Bundle/Writer/PhpBundleWriter.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,11 @@ public function write($path, $locale, $data)
4343
});
4444

4545
$data = var_export($data, true);
46-
$data = preg_replace('/array \(/', 'array(', $data);
47-
$data = preg_replace('/\n {1,10}array\(/', 'array(', $data);
46+
$data = preg_replace('/array \(/', '[', $data);
47+
$data = preg_replace('/\n {1,10}\[/', '[', $data);
4848
$data = preg_replace('/ /', ' ', $data);
49+
$data = preg_replace('/\),$/m', '],', $data);
50+
$data = preg_replace('/\)$/', ']', $data);
4951
$data = sprintf($template, $data);
5052

5153
file_put_contents($path.'/'.$locale.'.php', $data);

0 commit comments

Comments
 (0)
0